Skip to content

v1.1.0-rc

v1.1.0-rc #7

Workflow file for this run

name: Generate Changelog for Porter
on:
release:
types: [published]
jobs:
changelog:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
with:
ref: main
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install conventional-changelog-cli
run: npm install -g conventional-changelog-cli
- name: Generate changelog
run: conventional-changelog -p angular -i CHANGELOG.md -s -r 0
- name: Commit and push changes
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git add CHANGELOG.md
git commit -m "Updated Changelog after Latest Release" || echo "No changes to commit"
git push origin main