GC: csc2s #503
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: trigger build | |
on: | |
pull_request: | |
jobs: | |
get-code: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Remove .github directory | |
id: remove_directory | |
run: | | |
rm -rf .github/ | |
- name: Zip the code | |
run: | | |
set -x | |
set -e | |
if [ -f pr_code.zip ]; then | |
rm -rf pr_code.zip | |
fi | |
zip -r pr_code.zip . | |
- name: Upload zipped code artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: code-zip-${{ github.event.number }} | |
path: ./pr_code.zip | |
- name: Save the PR number and sha in an artifact | |
shell: bash | |
env: | |
PR_NUMBER: ${{ github.event.number }} | |
SHA: ${{ github.sha }} | |
run: | | |
echo $PR_NUMBER > pr_number.txt | |
echo $SHA >> pr_number.txt | |
- name: Upload PR number and sha artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: pr_number | |
path: ./pr_number.txt |