ci: trigger deploy after fetch-github-stars workflow succeeds

Adds a workflow_run trigger so the site is rebuilt whenever fresh
star data lands on master, in addition to the existing push trigger.
The build job guard ensures it only runs on direct pushes or when
the upstream workflow concluded successfully.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vinta Chen 2026-03-18 22:18:10 +08:00
parent bbe145cb36
commit bfed6a5c81
No known key found for this signature in database
GPG Key ID: B93DE4F003C33630

View File

@ -4,6 +4,10 @@ on:
push:
branches:
- master
workflow_run:
workflows: ["Fetch GitHub Stars"]
types: [completed]
branches: [master]
permissions:
contents: read
@ -16,6 +20,7 @@ concurrency:
jobs:
build:
if: github.event_name == 'push' || github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6