Skip to content

Commit 23740e0

Browse files
committed
Version bumping, try 3.
1 parent b83418b commit 23740e0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/pr_merge.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ on:
55
- closed
66

77
jobs:
8-
if_merged:
8+
VersionBump:
99
if: github.event.pull_request.merged == true
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
1113
steps:
1214
- name: Checkout
1315
uses: actions/checkout@v3
@@ -21,14 +23,12 @@ jobs:
2123
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
2224
run: |
2325
cd $GITHUB_WORKSPACE
24-
git config user.name "GitHub Actions"
25-
git config user.email "[email protected]"
26-
git pull origin master
2726
./scripts/increment_version.sh
28-
git add .
29-
if [[ -n "$(git status --porcelain)" ]]; then
30-
git commit -m "chore (automated): update version"
31-
git push origin master
32-
fi
27+
28+
- name: Push changes
29+
uses: ad-m/github-push-action@master
30+
with:
31+
github_token: ${{ secrets.GH_PAT }}
32+
branch: ${{ github.ref }}
3333

3434

0 commit comments

Comments
 (0)