File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
1216permissions :
@@ -21,6 +25,9 @@ concurrency:
2125jobs :
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
You can’t perform that action at this time.
0 commit comments