From 9a2b263dffaffdb068c27d494a38fc2f7b8a3061 Mon Sep 17 00:00:00 2001 From: tshion Date: Fri, 23 Feb 2024 22:54:26 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=90=E3=82=B0=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/update-app-version.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/update-app-version.yml b/.github/workflows/update-app-version.yml index 2e4df40..983a773 100644 --- a/.github/workflows/update-app-version.yml +++ b/.github/workflows/update-app-version.yml @@ -34,21 +34,20 @@ jobs: run: | ruby scripts/set-version.rb ${{ inputs.versionMajor }} ${{ inputs.versionMinor }} ${{ inputs.versionPatch }} echo "$(ruby scripts/pick-version-name.rb)" > TMP_LOG + echo "branch-name=feature/update_$(cat TMP_LOG)" >> "$GITHUB_OUTPUT" echo "version-name=$(cat TMP_LOG)" >> "$GITHUB_OUTPUT" - name: Setup git settings run: | git config --local user.email "github.actions@example.com" git config --local user.name "GitHub Actions" - echo "Finish setup git" - name: Git push run: | - git switch -c "feature/${{ steps.app-version.outputs.version-name }}" + git switch -c ${{ steps.app-version.outputs.branch-name }} git add Build.xcconfig - git commit -m "Update app version ${{ steps.app-version.outputs.version-name }}" - git push origin - echo "Updated git" + git commit -m "Update ${{ steps.app-version.outputs.version-name }}" + git push --set-upstream origin ${{ steps.app-version.outputs.branch-name }} - name: Create pull request run: gh pr create --title "Update app version ${{ steps.app-version.outputs.version-name }}" --body ""