Skip to content

Commit

Permalink
ci: Fix trigger for version index workflow (shaka-project#7900)
Browse files Browse the repository at this point in the history
The `workflow_call` trigger is required to allow calling a workflow from
another with "uses:". The `schedule` trigger was always a workaround,
and should now be removed.

See also PR shaka-project#7892.
  • Loading branch information
joeyparrish authored Jan 16, 2025
1 parent bcff34c commit db689f2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/demo-version-index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@ name: Deploy Demo Version Index
on:
workflow_dispatch:
# Allows for manual triggering.
workflow_call:
# Allows calling this from another workflow with "uses:".
# The release workflow will trigger this as a final step after updating the
# appspot deployment.
push:
branches:
- main
paths:
- .github/workflows/demo-version-index.yaml
- app-engine/demo-version-index/**
# NOTE: So long as releases are made without a personal access token (PAT),
# they will not activate this workflow's release trigger. For now, the
# schedule trigger will compensate for that by updating the index nightly.
schedule:
# Run every night at 10pm PST / 6am UTC.
- cron: '0 6 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down

0 comments on commit db689f2

Please sign in to comment.