christiangoeschel c382698132
All checks were successful
Pull Request Checks / commit-message-check (pull_request) Successful in 5s
Pull Request Checks / linting (pull_request) Successful in 35s
feat(ci): Make main-push workflow manual
2025-02-21 21:11:01 -05:00

33 lines
968 B
YAML

name: Post PR Merge Action
run-name: ${{ gitea.actor }} is building on ${{ gitea.repository }} 🚀
on:
workflow_dispatch:
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