File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 5
5
- closed
6
6
7
7
jobs :
8
- if_merged :
8
+ VersionBump :
9
9
if : github.event.pull_request.merged == true
10
10
runs-on : ubuntu-latest
11
+ permissions :
12
+ contents : write
11
13
steps :
12
14
- name : Checkout
13
15
uses : actions/checkout@v3
@@ -21,14 +23,12 @@ jobs:
21
23
GITHUB_TOKEN : ${{ secrets.GH_PAT }}
22
24
run : |
23
25
cd $GITHUB_WORKSPACE
24
- git config user.name "GitHub Actions"
25
- git config user.email "[email protected] "
26
- git pull origin master
27
26
./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 }}
33
33
34
34
You can’t perform that action at this time.
0 commit comments