Skip to content

Commit d15ffbd

Browse files
Run "Changelog Preview" on pushes to main (#5935)
## Changes Run the Changelog Preview workflow on every push to main ## Why To allow preview at any state after we fragmented changelog entries into .nextchanges/
1 parent 929ebe7 commit d15ffbd

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/changelog-preview.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: Changelog Preview
22

3-
# Renders the CHANGELOG.md section the next release would generate from this
4-
# PR's .nextchanges/ fragments into this check's job summary, so reviewers see
5-
# the rendered changelog without cutting a release. Fails the check if a
6-
# fragment is misplaced (so it can't be silently skipped by the renderer).
3+
# Renders the CHANGELOG.md section the next release would generate from the
4+
# .nextchanges/ fragments into this check's job summary, so reviewers see the
5+
# rendered changelog without cutting a release. Fails the check if a fragment
6+
# is misplaced (so it can't be silently skipped by the renderer).
77
#
8-
# Uses `pull_request` with a read-only token: it renders the PR's own
9-
# .nextchanges/ content and never needs write credentials.
8+
# Runs on pull requests (rendering the PR's own .nextchanges/ content) and on
9+
# pushes to main (so anyone can view the preview for any commit on main). Uses
10+
# a read-only token: it only reads .nextchanges/ and never needs write
11+
# credentials.
1012
on:
1113
pull_request:
1214
types: [opened, reopened, synchronize]
@@ -15,6 +17,9 @@ on:
1517
- "internal/genkit/**"
1618
- "tools/validate_nextchanges.py"
1719
- "tools/update_github_links.py"
20+
push:
21+
branches:
22+
- main
1823

1924
permissions:
2025
contents: read

0 commit comments

Comments
 (0)