Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Generating changelog.md using github actions! #2837

Merged
merged 5 commits into from Aug 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/changelog.yaml
@@ -0,0 +1,34 @@
name: Generate Changelog for Porter
on:
release:
types: [published]

jobs:
changelog:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3.3.0
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 'actions@github.com'
git add CHANGELOG.md
git commit -m "Updated Changelog after Latest Release" || echo "No changes to commit"
git push origin main