Skip to content

Commit eafbec1

Browse files
committed
fix(ci): trigger website redeploy via workflow_run instead of gh workflow run
1 parent 0cb754a commit eafbec1

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -362,11 +362,7 @@ jobs:
362362
git diff --cached --quiet && echo "No appcast changes to commit" && exit 0
363363
git commit -m "chore(release): update appcast for v${RELEASE_VERSION}"
364364
git push origin HEAD:main
365-
366-
- name: Trigger website redeploy
367-
run: gh workflow run website.yml --ref main
368-
env:
369-
GH_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
365+
# Note: the Website workflow redeploys via workflow_run trigger on Release completion.
370366
371367
- name: Trigger cask update
372368
uses: peter-evans/repository-dispatch@v4

.github/workflows/website.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
- "website/**"
88
- "CHANGELOG.md"
99
- ".github/workflows/website.yml"
10+
workflow_run:
11+
workflows: ["Release"]
12+
types: [completed]
13+
branches: [main]
1014
workflow_dispatch:
1115

1216
permissions:
@@ -21,6 +25,9 @@ concurrency:
2125
jobs:
2226
build:
2327
name: Build site
28+
if: >
29+
github.event_name != 'workflow_run' ||
30+
github.event.workflow_run.conclusion == 'success'
2431
runs-on: ubuntu-latest
2532
steps:
2633
- name: Checkout

0 commit comments

Comments
 (0)