Skip to content

Adds a new GH action to update the CHANGELOG (#8658) #2

Adds a new GH action to update the CHANGELOG (#8658)

Adds a new GH action to update the CHANGELOG (#8658) #2

name: Update CHANGELOG

Check failure on line 1 in .github/workflows/update-changelog.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/update-changelog.yml

Invalid workflow file

(Line: 5, Col: 1): Unexpected value 'schedule'
on:
workflow_dispatch
schedule:
# Runs every Tuesday at 9 PM Pacific Time (5 AM UTC Wednesday)
- cron: '0 5 * * 3'
permissions:
contents: write
pull-requests: write
jobs:
update-changelog:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v2
- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install dependencies
run: npm ci
- name: Update version.json
run: npx gulp updateChangelog
- name: Create version update PR
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update ${{ github.ref_name }} CHANGELOG
title: '[automated] Update ${{ github.ref_name }} CHANGELOG'
branch: merge/update-${{ github.ref_name }}-changelog