Skip to content

Commit c40b54c

Browse files
committed
ci: Fix demo index workflow runs too early when a release is made (#7892)
Fixes #7379
1 parent 4c58924 commit c40b54c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ on:
99
paths:
1010
- .github/workflows/demo-version-index.yaml
1111
- app-engine/demo-version-index/**
12-
release:
13-
types: [published]
1412
# NOTE: So long as releases are made without a personal access token (PAT),
1513
# they will not activate this workflow's release trigger. For now, the
1614
# schedule trigger will compensate for that by updating the index nightly.

.github/workflows/release-please.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,8 @@ jobs:
202202
TAG=${{ needs.release.outputs.tag_name }}
203203
BRANCH=$(echo "$TAG" | sed -e 's/\.0$/.x/')
204204
git push origin refs/tags/"$TAG"^{commit}:refs/heads/"$BRANCH"
205+
206+
update-demo-index:
207+
name: Deploy Demo Version Index
208+
needs: [appspot]
209+
uses: ./.github/workflows/demo-version-index.yaml

0 commit comments

Comments
 (0)