From 40890f3cb036c94a83d123730d824b4f522219bf Mon Sep 17 00:00:00 2001 From: Brett <12437916+colbr@users.noreply.github.com> Date: Thu, 27 Feb 2025 16:25:04 +1100 Subject: [PATCH] ci: create PR from user git --- .github/workflows/version-increment.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/version-increment.yml b/.github/workflows/version-increment.yml index 45882ae20..761d2898c 100644 --- a/.github/workflows/version-increment.yml +++ b/.github/workflows/version-increment.yml @@ -30,8 +30,9 @@ jobs: - name: Configure Git run: | - git config user.name "ZERO Actions Bot" - git config user.email "github-actions[bot]@users.noreply.github.com" + git config user.name "${{ github.actor }}" + git config user.email "${{ github.actor }}@users.noreply.github.com" + echo "Configured Git as user: ${{ github.actor }}" - name: Increment version id: version @@ -57,10 +58,10 @@ jobs: uses: peter-evans/create-pull-request@v5 with: token: ${{ secrets.GITHUB_TOKEN }} - commit-message: 'chore: bump ${{ github.event.inputs.version_increment }} (${{ steps.version.outputs.current_version }} -> ${{ steps.version.outputs.new_version }})' - title: 'chore: bump ${{ github.event.inputs.version_increment }} (${{ steps.version.outputs.current_version }} -> ${{ steps.version.outputs.new_version }})' + commit-message: 'chore: bump ${{ github.event.inputs.version_increment }} (`${{ steps.version.outputs.current_version }}` -> `${{ steps.version.outputs.new_version }}`)' + title: 'chore: bump ${{ github.event.inputs.version_increment }} (`${{ steps.version.outputs.current_version }}` -> `${{ steps.version.outputs.new_version }}`)' body: | - This PR bumps the version from ${{ steps.version.outputs.current_version }} to ${{ steps.version.outputs.new_version }}. + This PR bumps the version from `${{ steps.version.outputs.current_version }}` to `${{ steps.version.outputs.new_version }}`. Automated version increment via GitHub Actions. branch: ${{ steps.version.outputs.branch_name }}