Merge pull request #1302 from BelfrySCAD/revarbat_dev

Version bumping, try 3.
This commit is contained in:
Revar Desmera 2023-11-01 15:23:21 -07:00 committed by GitHub
commit 117e3af854
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,9 +5,11 @@ on:
- closed - closed
jobs: jobs:
if_merged: VersionBump:
if: github.event.pull_request.merged == true if: github.event.pull_request.merged == true
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: write
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -21,14 +23,12 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_PAT }} GITHUB_TOKEN: ${{ secrets.GH_PAT }}
run: | run: |
cd $GITHUB_WORKSPACE cd $GITHUB_WORKSPACE
git config user.name "GitHub Actions"
git config user.email "github+actions@gmail.com"
git pull origin master
./scripts/increment_version.sh ./scripts/increment_version.sh
git add .
if [[ -n "$(git status --porcelain)" ]]; then - name: Push changes
git commit -m "chore (automated): update version" uses: ad-m/github-push-action@master
git push origin master with:
fi github_token: ${{ secrets.GH_PAT }}
branch: ${{ github.ref }}