Skip to content

Merge pull request #889 from coderKrysio/develop #34

Merge pull request #889 from coderKrysio/develop

Merge pull request #889 from coderKrysio/develop #34

Workflow file for this run

name: Changelog
on:
push:
branches:
- main
jobs:
changelog:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Generate Changelog
id: changelog
uses: conventional-changelog-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
output-file: CHANGELOG.md
preset: angular # You can choose a preset or configure your own
- name: Create Release
if: ${{ github.ref == 'refs/heads/main' && steps.changelog.outputs.changes != '' }}
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.sha }}
release_name: Release ${{ github.sha }}
body: |
### Changelog
$(cat CHANGELOG.md) # Include the generated changelog here
- name: Commit Changelog
if: ${{ steps.changelog.outputs.changes != '' }}
uses: EndBug/add-and-commit@v9
with:
author_name: "GitHub Actions"
author_email: "actions@github.com"
message: "Update changelog"