diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml index aa7dfeb4b..44fe4c4d8 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -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 @@ -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" @@ -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: | @@ -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, @@ -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 }}"