[ignore] Testing git-cliff in GitHub actions #6
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: release_pr | |
on: | |
push: | |
branches: | |
- release-pr-test | |
jobs: | |
git-cliff: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Unshallow | |
run: git fetch --prune --unshallow | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- run: pip install git-cliff | |
- name: Generate changelog output | |
run: git cliff --bump --unreleased | |
- name: Prepend new changelog entry | |
run: git cliff --bump --unreleased -p CHANGELOG.md | |
- name: Set git config | |
run: git config user.email "dcn-ecosystem@cisco.com" && git config user.name "dcn-ecosystem" | |
- name: Commit | |
run: git add -u && git status && git commit -m "[ignore] Update Changelog for new release (vTODO)" | |
- name: Branch & Push | |
run: git checkout -b release_pr && git push --force && git clean -f -d |