Skip to content

Commit

Permalink
Conditionally set run ID when downloading artifacts
Browse files Browse the repository at this point in the history
This enables the workflow to be reused.
  • Loading branch information
PaulKlauser committed Jun 3, 2024
1 parent 3960bb0 commit 958dd02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/device-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ jobs:
steps:
- uses: haya14busa/action-workflow_run-status@v1
if: ${{ github.event_name == 'workflow_run' }}
- name: Set RUN_ID
run: echo "RUN_ID=${{ github.event_name == 'workflow_run' && github.event.workflow_run.id || github.run_id }}" >> $GITHUB_ENV
- uses: actions/download-artifact@v4
with:
run-id: ${{github.event.workflow_run.id }}
run-id: ${{ env.RUN_ID }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Decode Firebase Service Account JSON
Expand Down

0 comments on commit 958dd02

Please sign in to comment.