From bfed6a5c81ec0f3f9a1f54631a42f16c92c18696 Mon Sep 17 00:00:00 2001 From: Vinta Chen Date: Wed, 18 Mar 2026 22:18:10 +0800 Subject: [PATCH] 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 --- .github/workflows/deploy-website.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index c52138d2..08d5e4c8 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -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