Version Bumping on PR merge

This commit is contained in:
Revar Desmera 2023-11-28 22:12:22 -08:00
parent e94365556c
commit 0dece30ff8
2 changed files with 27 additions and 9 deletions

View File

@ -2,15 +2,6 @@ name: Checks
on: [pull_request]
jobs:
VersionCheck:
runs-on: ubuntu-latest
steps:
- name: Check Version
uses: JJ/github-pr-contains-action@releases/v11
with:
github-token: ${{github.token}}
diffContains: '^BOSL_VERSION'
Regressions:
runs-on: ubuntu-latest
steps:

27
.github/workflows/pr_merge.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: VersionBump
on:
pull_request:
types: [closed]
jobs:
VersionCheck:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Bump Version
run: ./scripts/increment_version.sh
- name: Checkin
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Version Bump
file_pattern: version.scad