Skip to content

[ignore] Testing git-cliff in GitHub actions #7

[ignore] Testing git-cliff in GitHub actions

[ignore] Testing git-cliff in GitHub actions #7

Workflow file for this run

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 --set-upstream origin release_pr --force && git clean -f -d