From ce315b4df0eff2017d67f0047085bbc4ad500af8 Mon Sep 17 00:00:00 2001 From: James Kessler Date: Fri, 27 Sep 2024 15:15:38 -0400 Subject: [PATCH] Test Linux Binaries after they're built in CI (Cont'd) (#159) * Add correct Run ID to artifact download step(s) in both test workflows. --- .github/workflows/test-binaries-qemu.yml | 4 +++- .github/workflows/test-binaries.yml | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-binaries-qemu.yml b/.github/workflows/test-binaries-qemu.yml index 357ae02..b831aff 100644 --- a/.github/workflows/test-binaries-qemu.yml +++ b/.github/workflows/test-binaries-qemu.yml @@ -19,6 +19,7 @@ jobs: - name: Download coveralls-linux-x86_64 binary uses: actions/download-artifact@v4 with: + run-id: ${{ github.event.workflow_run.id }} name: coveralls-linux-binaries path: ./artifacts - name: Test binary @@ -37,7 +38,7 @@ jobs: run: | echo "Available artifacts:" curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ - "https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts" | jq '.artifacts[] | .name' + "https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.event.workflow_run.id }}/artifacts" | jq '.artifacts[] | .name' - name: Set up QEMU for aarch64 emulation uses: docker/setup-qemu-action@v3 with: @@ -45,6 +46,7 @@ jobs: - name: Download coveralls-linux-aarch64 binary uses: actions/download-artifact@v4 with: + run-id: ${{ github.event.workflow_run.id }} name: coveralls-linux-binaries path: ./artifacts - name: Test binary diff --git a/.github/workflows/test-binaries.yml b/.github/workflows/test-binaries.yml index fbcc7e1..684457b 100644 --- a/.github/workflows/test-binaries.yml +++ b/.github/workflows/test-binaries.yml @@ -29,6 +29,7 @@ jobs: - name: Download built artifacts (linux binaries) uses: actions/download-artifact@v4 with: + run-id: ${{ github.event.workflow_run.id }} name: coveralls-linux-binaries path: ./binaries/