fix: github action bug #23
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: Conventional Changelog Action | |
on: | |
push: | |
branches: | |
- main | |
merge_group: | |
branches: | |
- main | |
jobs: | |
changelog: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Bump version and push tag | |
uses: TriPSs/conventional-changelog-action@v3 | |
with: | |
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
git-message: "change log (release): {version}" | |
preset: "angular" | |
tag-prefix: "v" | |
output-file: "CHANGELOG.md" | |
skip-on-empty: false | |
- name: Deploy to stable => Merge main -> stable | |
env: | |
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
run: | | |
git fetch origin stable | |
git checkout stable | |
git merge main | |
git push |