Skip to content

Commit 064b9a5

Browse files
joeyparrishavelad
authored andcommitted
ci: Fix trigger for version index workflow (#7900)
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 #7892.
1 parent 2ae2408 commit 064b9a5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/demo-version-index.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,16 @@ name: Deploy Demo Version Index
33
on:
44
workflow_dispatch:
55
# Allows for manual triggering.
6+
workflow_call:
7+
# Allows calling this from another workflow with "uses:".
8+
# The release workflow will trigger this as a final step after updating the
9+
# appspot deployment.
610
push:
711
branches:
812
- main
913
paths:
1014
- .github/workflows/demo-version-index.yaml
1115
- app-engine/demo-version-index/**
12-
# NOTE: So long as releases are made without a personal access token (PAT),
13-
# they will not activate this workflow's release trigger. For now, the
14-
# schedule trigger will compensate for that by updating the index nightly.
15-
schedule:
16-
# Run every night at 10pm PST / 6am UTC.
17-
- cron: '0 6 * * *'
1816

1917
concurrency:
2018
group: ${{ github.workflow }}-${{ github.ref }}

0 commit comments

Comments
 (0)