Skip to content

Commit

Permalink
Conditional run ID for artifact action.
Browse files Browse the repository at this point in the history
  • Loading branch information
firke committed Apr 13, 2022
1 parent 78944bd commit 09080cc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ on:
description: "Whether to push notifications for channels"
required: true
default: false
binary-release-id:
description: "Optional workflow run ID for binaries"
required: false
default: false
runtime-release-id:
description: "Optional workflow run ID for binaries"
required: false
default: false

jobs:
on-success:
Expand All @@ -41,13 +49,15 @@ jobs:
branch: master
workflow: binary-build.yml
workflow_conclusion: success
run_id: ${{ github.event.inputs.binary-release-id }}

- name: Download runtime artifact
uses: dawidd6/action-download-artifact@v2
with:
branch: master
workflow: runtime-build.yml
workflow_conclusion: success
run_id: ${{ github.event.inputs.runtime-release-id }}

- name: Display structure of downloaded files
run: ls -R
Expand Down

0 comments on commit 09080cc

Please sign in to comment.