Skip to content

Commit d700671

Browse files
authored
ci: use workflow_run to trigger downstream release pipelines (#1573)
1 parent 523eb64 commit d700671

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

.github/workflows/chocolatey-release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Chocolatey Release
22

3-
on: workflow_dispatch
3+
on:
4+
workflow_dispatch:
5+
workflow_run:
6+
workflows: [Release]
7+
types:
8+
- completed
49

510
jobs:
611
publish-chocolatey:

.github/workflows/release.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,6 @@ jobs:
6767
run: |
6868
scripts/release_containers.sh
6969
70-
- name: Trigger Homebrew formula update
71-
uses: benc-uk/workflow-dispatch@v1
72-
with:
73-
workflow: update-homebrew-formula.yml
74-
75-
- name: Trigger Trigger CLI docs update
76-
uses: benc-uk/workflow-dispatch@v1
77-
with:
78-
workflow: update-cli-docs.yml
79-
80-
- name: Trigger Chocolatey package update
81-
uses: benc-uk/workflow-dispatch@v1
82-
with:
83-
workflow: chocolatey-release.yml
84-
8570
- name: Notify Slack on Failure
8671
uses: slackapi/[email protected]
8772
if: failure()

.github/workflows/update-cli-docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Update CLI Docs
22

33
on:
44
workflow_dispatch:
5+
workflow_run:
6+
workflows: [Release]
7+
types:
8+
- completed
59

610
jobs:
711
update-cli-docs:

.github/workflows/update-homebrew-formula.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Update Homebrew Formula
22

33
on:
44
workflow_dispatch:
5+
workflow_run:
6+
workflows: [Release]
7+
types:
8+
- completed
59

610
jobs:
711
update-homefrew-formula:

0 commit comments

Comments
 (0)