Repository navigation
Fix: show a widget render failure as an internal error #594
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Changelog | ||
|
Check warning on line 1 in .github/workflows/changelog.yml
|
||
| on: | ||
| pull_request: | ||
| types: [opened, edited, reopened, synchronize] | ||
| pull_request_target: | ||
| types: [closed] | ||
| branches: | ||
| - main | ||
| # Every write goes through the app token below. | ||
| permissions: {} | ||
| jobs: | ||
| check: | ||
| if: github.event_name == 'pull_request' | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 5 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Set up Node.js | ||
| uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 | ||
| with: | ||
| node-version: '24' | ||
| - name: Check the Changelog section of the description | ||
| env: | ||
| PR_BODY: ${{ github.event.pull_request.body }} | ||
| run: node scripts/changelog-pr.js --check | ||
| # Runs the default branch's copy of this file and script. Never check out the | ||
| # pull request head here: this job holds a token that can write to main. | ||
| write: | ||
| if: github.event_name == 'pull_request_target' && github.event.pull_request.merged == true | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - name: Mint a token for the release app | ||
| id: app | ||
| uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 | ||
| with: | ||
| client-id: ${{ secrets.RELEASE_APP_CLIENT_ID }} | ||
| private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} | ||
| - name: Checkout default branch | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| ref: ${{ github.event.repository.default_branch }} | ||
| persist-credentials: false | ||
| - name: Set up Node.js | ||
| uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 | ||
| with: | ||
| node-version: '24' | ||
| # A concurrency group keeps only one pending run, so a third merge in a | ||
| # row would cancel the second. Each run retries its push instead. | ||
| - name: Add the entries to CHANGELOG.md | ||
| env: | ||
| PR_BODY: ${{ github.event.pull_request.body }} | ||
| NUMBER: ${{ github.event.pull_request.number }} | ||
| BASE: ${{ github.event.repository.default_branch }} | ||
| REPO: ${{ github.repository }} | ||
| GH_TOKEN: ${{ steps.app.outputs.token }} | ||
| run: bash scripts/changelog-push.sh | ||