Skip to content

Commit 63b0d8a

Browse files
committed
chore: different workflow dispatcher
1 parent c8992a8 commit 63b0d8a

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/upgrade-services.yaml

+10-3
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,28 @@ jobs:
5353
git commit -m "chore: automated service version bump"
5454
git push -u origin master
5555
56-
- uses: benc-uk/workflow-dispatch@v1
56+
- name: Dispatch an action and get the run ID
57+
if: ${{ steps.diff.outputs.changes == '1' }}
58+
uses: codex-/return-dispatch@v1
5759
id: dispatcher
5860
with:
61+
token: ${{ github.token }}
62+
owner: restorecommerce
63+
repo: charts
5964
workflow: release.yaml
6065
ref: master
6166

62-
- name: Await Run ID ${{ steps.dispatcher.outputs.workflowId }}
67+
- name: Await Run ID ${{ steps.dispatcher.outputs.run_id }}
68+
if: ${{ steps.diff.outputs.changes == '1' }}
6369
uses: Codex-/[email protected]
6470
with:
6571
token: ${{ github.token }}
6672
owner: restorecommerce
6773
repo: charts
68-
run_id: ${{ steps.dispatcher.outputs.workflowId }}
74+
run_id: ${{ steps.dispatcher.outputs.run_id }}
6975

7076
- uses: benc-uk/workflow-dispatch@v1
77+
if: ${{ steps.diff.outputs.changes == '1' }}
7178
with:
7279
workflow: upgrade-system.yaml
7380
ref: master

.github/workflows/upgrade-system.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
git push -u origin master
5555
5656
- uses: benc-uk/workflow-dispatch@v1
57+
if: ${{ steps.diff.outputs.changes == '1' }}
5758
with:
5859
workflow: release.yaml
5960
ref: master

0 commit comments

Comments
 (0)