diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6baa57d..8a5cab9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: diff --git a/.github/workflows/pr_merge.yml b/.github/workflows/pr_merge.yml new file mode 100644 index 0000000..bd17ed5 --- /dev/null +++ b/.github/workflows/pr_merge.yml @@ -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 +