Skip to content

Commit a2475b1

Browse files
committed
wip
1 parent 95b6db5 commit a2475b1

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/releases.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ jobs:
2222
echo "version=${VERSION#v}" >> "$GITHUB_OUTPUT"
2323
2424
- name: Update Application.php version
25-
run: |
26-
sed -i "s/const VERSION = '.*';/const VERSION = '${{ steps.version.outputs.version }}';/g" src/Illuminate/Foundation/Application.php
27-
git config --global user.name 'Taylor Otwell'
28-
git config --global user.email 'taylorotwell@users.noreply.github.com'
29-
git add src/Illuminate/Foundation/Application.php
30-
git commit -m "Update version to v${{ steps.version.outputs.version }}"
31-
git push origin ${{ github.ref_name }}
25+
run: sed -i "s/const VERSION = '.*';/const VERSION = '${{ steps.version.outputs.version }}';/g" src/Illuminate/Foundation/Application.php
26+
27+
- name: Commit version change
28+
uses: EndBug/add-and-commit@v9
29+
with:
30+
add: src/Illuminate/Foundation/Application.php
31+
default_author: github_actions
32+
message: "Update version to v${{ steps.version.outputs.version }}"
33+
push: origin ${{ github.ref_name }}
3234

3335
- name: SSH into splitter server
3436
uses: appleboy/ssh-action@master

0 commit comments

Comments
 (0)