mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-16 13:50:23 +01:00
Version Bumping on PR merge
This commit is contained in:
parent
e94365556c
commit
0dece30ff8
9
.github/workflows/main.yml
vendored
9
.github/workflows/main.yml
vendored
@ -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
27
.github/workflows/pr_merge.yml
vendored
Normal 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user