2023-11-01 21:42:50 +00:00
|
|
|
name: Checks
|
|
|
|
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
|
|
|
|
uses: ad-m/github-push-action@master
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GH_PAT }}
|
|
|
|
branch: ${{ github.ref }}
|
2023-11-01 21:42:50 +00:00
|
|
|
|
|
|
|
|