Skip to content

Commit

Permalink
ci: Fix demo index workflow runs too early when a release is made (#7892
Browse files Browse the repository at this point in the history
)

Fixes #7379
  • Loading branch information
avelad authored Jan 16, 2025
1 parent 510962f commit f31c6f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/demo-version-index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ on:
paths:
- .github/workflows/demo-version-index.yaml
- app-engine/demo-version-index/**
release:
types: [published]
# 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.
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,8 @@ jobs:
TAG=${{ needs.release.outputs.tag_name }}
BRANCH=$(echo "$TAG" | sed -e 's/\.0$/.x/')
git push origin refs/tags/"$TAG"^{commit}:refs/heads/"$BRANCH"
update-demo-index:
name: Deploy Demo Version Index
needs: [appspot]
uses: ./.github/workflows/demo-version-index.yaml

0 comments on commit f31c6f0

Please sign in to comment.