From a2475b17e480e53ac281d0687735fe4e09dd8681 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 30 Jan 2024 17:18:13 +0100 Subject: [PATCH] wip --- .github/workflows/releases.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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