mirror of
https://github.com/vinta/awesome-python.git
synced 2026-03-23 13:56:43 +08:00
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:
5
.github/workflows/deploy-website.yml
vendored
5
.github/workflows/deploy-website.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user