mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +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
|
||||
|
||||
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 }}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue