Skip to content

Commit

Permalink
Support slashes in branch names
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Jan 21, 2024
1 parent 8783099 commit 3744eb9
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/test-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
runs-on: ubuntu-20.04
outputs:
matrix: ${{ steps.get-names.outputs.matrix }}
artifact: ${{ steps.get-artifact-name.outputs.artifact }}
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -198,10 +199,17 @@ jobs:
cd $HOME
tar --exclude-vcs --exclude=build --exclude=.libs -cf gap.tar.zst gap
- name: "Compute suitable artifact name suffix"
id: get-artifact-name
run: |
echo "artifact=${{ github.event.inputs.which-gap || inputs.which-gap }}" | sed -e 's;/;-;g' >> $GITHUB_OUTPUT
echo "GITHUB_OUTPUT = $GITHUB_OUTPUT"
cat $GITHUB_OUTPUT
- name: "Upload GAP with packages as artifact"
uses: actions/upload-artifact@v3
with:
name: gap-${{ github.event.inputs.which-gap || inputs.which-gap }}
name: gap-${{ steps.get-artifact-name.outputs.artifact }}
path: /home/runner/gap.tar.zst

- name: "Create jobs for matching packages"
Expand Down Expand Up @@ -255,7 +263,7 @@ jobs:
- name: "Download GAP from previous job"
uses: actions/download-artifact@v3
with:
name: gap-${{ github.event.inputs.which-gap || inputs.which-gap }}
name: gap-${{ needs.build.outputs.artifact }}

- name: "Extract GAP artifact"
run: |
Expand Down Expand Up @@ -371,7 +379,7 @@ jobs:
id: download-latest-report
run: |
ROOT="data/reports"
DIR_SYM_REL=latest-${{ github.event.inputs.which-gap || inputs.which-gap }}
DIR_SYM_REL=latest-${{ needs.build.outputs.artifact }}
DIR_SYM="${ROOT}/${DIR_SYM_REL}"
URL_SYM="https://raw.githubusercontent.com/${{ github.repository }}/${DIR_SYM}"
# Check if file at url exists,
Expand All @@ -390,10 +398,10 @@ jobs:
- name: "Generate report"
id: report
run: tools/generate_report.py ${{ steps.test-status.outputs.dir-rel }} latest-${{ github.event.inputs.which-gap || inputs.which-gap }}
run: tools/generate_report.py ${{ steps.test-status.outputs.dir-rel }} latest-${{ needs.build.outputs.artifact }}

- name: "Upload report as artifact"
uses: actions/upload-artifact@v3
with:
name: "report-${{ github.event.inputs.which-gap || inputs.which-gap }}"
name: "report-${{ needs.build.outputs.artifact }}"
path: "${{ steps.test-status.outputs.dir }}"

0 comments on commit 3744eb9

Please sign in to comment.