Skip to content

Commit

Permalink
ci: use workflow_run to trigger downstream release pipelines (#1573)
Browse files Browse the repository at this point in the history
  • Loading branch information
PengyuanZhao authored Mar 1, 2024
1 parent 523eb64 commit d700671
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/chocolatey-release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Chocolatey Release

on: workflow_dispatch
on:
workflow_dispatch:
workflow_run:
workflows: [Release]
types:
- completed

jobs:
publish-chocolatey:
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,21 +67,6 @@ jobs:
run: |
scripts/release_containers.sh
- name: Trigger Homebrew formula update
uses: benc-uk/workflow-dispatch@v1
with:
workflow: update-homebrew-formula.yml

- name: Trigger Trigger CLI docs update
uses: benc-uk/workflow-dispatch@v1
with:
workflow: update-cli-docs.yml

- name: Trigger Chocolatey package update
uses: benc-uk/workflow-dispatch@v1
with:
workflow: chocolatey-release.yml

- name: Notify Slack on Failure
uses: slackapi/slack-github-action@v1.25.0
if: failure()
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/update-cli-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Update CLI Docs

on:
workflow_dispatch:
workflow_run:
workflows: [Release]
types:
- completed

jobs:
update-cli-docs:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/update-homebrew-formula.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Update Homebrew Formula

on:
workflow_dispatch:
workflow_run:
workflows: [Release]
types:
- completed

jobs:
update-homefrew-formula:
Expand Down

0 comments on commit d700671

Please sign in to comment.