christiangoeschel c1eb61d425
Some checks failed
Post PR Merge Action / integrate (push) Failing after 6s
feat: Add dev tools and helper scripts
2025-02-10 17:08:33 -05:00

35 lines
982 B
YAML

name: Post PR Merge Action
run-name: ${{ gitea.actor }} is building on ${{ gitea.repository }} 🚀
on:
push:
branches:
- main
jobs:
integrate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install git-cliff
run: |
chmod +x ./install-cliff.sh
./install-cliff.sh
working-directory: ./scripts
- name: Version bump, tag and update CHANGELOG.md
run: |
git remote -v
git config --global user.email "act_runner@foo.bar"
git config --global user.name "act_runner"
/usr/local/bin/git-cliff --bump -o CHANGELOG.md
git add CHANGELOG.md
git commit -m "ci: Push tag $(/usr/local/bin/git-cliff --bumped-version) and update CHANGELOG"
git tag $(/usr/local/bin/git-cliff --bumped-version)
git push origin main
git push --tags