mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-06 04:09:47 +00:00
Merge pull request #1302 from BelfrySCAD/revarbat_dev
Version bumping, try 3.
This commit is contained in:
commit
117e3af854
1 changed files with 9 additions and 9 deletions
18
.github/workflows/pr_merge.yml
vendored
18
.github/workflows/pr_merge.yml
vendored
|
@ -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 }}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue