BOSL2/.github/workflows/pr_merge.yml
2023-11-01 15:34:32 -07:00

35 lines
672 B
YAML

name: Checks
on:
pull_request:
types:
- closed
jobs:
VersionBump:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Apt Update
run: sudo apt update
- name: Bump Version
id: commit
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
run: |
cd $GITHUB_WORKSPACE
./scripts/increment_version.sh
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_user_email: github+actions@gmail.com
commit_message: Version Bump