Skip to content

Commit

Permalink
passing build job_id to download artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomontero committed May 6, 2024
1 parent 79dd6dc commit 27a8353
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/publish-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
required: true
description: 'The environment to publish to'
default: 'staging'
build_run_id:
type: number
required: true
description: 'The build run id'
jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -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/[email protected]
with:
run_id: ${{ inputs.build_run_id }}
name: package
path: build/

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ jobs:
needs: call-build
with:
environment: staging

build_run_id: ${{ github.run_id }}

0 comments on commit 27a8353

Please sign in to comment.