From 2fde9259e100285832e5cfa584884d4cf547eb32 Mon Sep 17 00:00:00 2001 From: Hugo Montero Date: Mon, 6 May 2024 07:50:06 -0600 Subject: [PATCH] passing build job_id to download artifacts --- .github/workflows/publish-v2.yml | 10 ++++++++-- .github/workflows/staging.yml | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-v2.yml b/.github/workflows/publish-v2.yml index 67ce0bdb2..9caa9d1ce 100644 --- a/.github/workflows/publish-v2.yml +++ b/.github/workflows/publish-v2.yml @@ -7,6 +7,10 @@ on: required: true description: 'The environment to publish to' default: 'staging' + build_run_id: + type: string + required: true + description: 'The build run id' jobs: publish: runs-on: ubuntu-latest @@ -24,9 +28,11 @@ jobs: - name: Install dependencies run: npm install - - name: Download artifacts - uses: actions/download-artifact@v2 + + - name: Download workflow artifact + uses: dawidd6/action-download-artifact@v3.1.4 with: + run_id: ${{ inputs.build_run_id }} name: package path: build/ diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index dabf820fe..a56bf9205 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -17,4 +17,4 @@ jobs: needs: call-build with: environment: staging - + build_run_id: ${{ github.run_id }}