BOSL2/.github/workflows/pr_merge.yml
2023-11-01 15:22:49 -07:00

34 lines
651 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: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GH_PAT }}
branch: ${{ github.ref }}