diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index a7d452493d67..e4d56e9a9b7e 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -22,13 +22,15 @@ jobs: echo "version=${VERSION#v}" >> "$GITHUB_OUTPUT" - name: Update Application.php version - run: | - sed -i "s/const VERSION = '.*';/const VERSION = '${{ steps.version.outputs.version }}';/g" src/Illuminate/Foundation/Application.php - git config --global user.name 'Taylor Otwell' - git config --global user.email 'taylorotwell@users.noreply.github.com' - git add src/Illuminate/Foundation/Application.php - git commit -m "Update version to v${{ steps.version.outputs.version }}" - git push origin ${{ github.ref_name }} + run: sed -i "s/const VERSION = '.*';/const VERSION = '${{ steps.version.outputs.version }}';/g" src/Illuminate/Foundation/Application.php + + - name: Commit version change + uses: EndBug/add-and-commit@v9 + with: + add: src/Illuminate/Foundation/Application.php + default_author: github_actions + message: "Update version to v${{ steps.version.outputs.version }}" + push: origin ${{ github.ref_name }} - name: SSH into splitter server uses: appleboy/ssh-action@master