Split master CHANGELOG.md to each minor version #1
This file contains 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: Split master CHANGELOG.md to each minor version | |
on: | |
schedule: | |
- cron: "0 0 * * 1" | |
workflow_dispatch: | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
split_changelog: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Setup NodeJS" | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: "Checkout fluentui-charting-contrib" | |
uses: actions/checkout@v4 | |
with: | |
path: "repo" | |
- name: Check git config | |
run: | | |
cd ./repo | |
git remote -v | |
- name: "Create Splits of CHANGELOG and move to docs" | |
run: | | |
node ./repo/apps/docsite/src/scripts/splitChangelog.ts | |
cd ./repo/docs | |
rm -rf ./changelogSplits | |
mkdir ./changelogSplits | |
mv -f ./../../dist/* ./changelogSplits | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
commit-message: Updating changelogs | |
delete-branch: true | |
path: ./repo | |
branch: update-changelog | |
branch-suffix: short-commit-hash | |
title: Automated update of CHANGELOG.md | |
body: This PR adds updates to the docsite CHANGELOG |