2023-11-01 22:37:23 +00:00
|
|
|
name: VersionBump
|
2023-11-01 21:42:50 +00:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types:
|
|
|
|
- closed
|
|
|
|
|
|
|
|
jobs:
|
2023-11-01 22:22:49 +00:00
|
|
|
VersionBump:
|
2023-11-01 21:42:50 +00:00
|
|
|
if: github.event.pull_request.merged == true
|
|
|
|
runs-on: ubuntu-latest
|
2023-11-01 22:22:49 +00:00
|
|
|
permissions:
|
|
|
|
contents: write
|
2023-11-01 21:42:50 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Apt Update
|
|
|
|
run: sudo apt update
|
|
|
|
|
|
|
|
- name: Bump Version
|
|
|
|
id: commit
|
|
|
|
env:
|
2023-11-01 21:53:54 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
|
2023-11-01 21:42:50 +00:00
|
|
|
run: |
|
|
|
|
cd $GITHUB_WORKSPACE
|
|
|
|
./scripts/increment_version.sh
|
2023-11-01 22:22:49 +00:00
|
|
|
|
|
|
|
- name: Push changes
|
2023-11-01 22:34:32 +00:00
|
|
|
uses: stefanzweifel/git-auto-commit-action@v5
|
2023-11-01 22:22:49 +00:00
|
|
|
with:
|
2023-11-01 22:45:08 +00:00
|
|
|
branch: master
|
2023-11-01 22:32:26 +00:00
|
|
|
commit_user_email: github+actions@gmail.com
|
|
|
|
commit_message: Version Bump
|
|
|
|
|
2023-11-01 21:42:50 +00:00
|
|
|
|
|
|
|
|