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
jobs:
if_merged:
VersionBump:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
@ -21,14 +23,12 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
run: |
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
git add .
if [[ -n "$(git status --porcelain)" ]]; then
git commit -m "chore (automated): update version"
git push origin master
fi
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GH_PAT }}
branch: ${{ github.ref }}