Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from tshion/feature/#6_fix_error_update_version
Browse files Browse the repository at this point in the history
#6 アプリバージョンを更新するGitHub Actions の調整
  • Loading branch information
tshion authored Feb 23, 2024
2 parents 912268f + 9a2b263 commit f4b9b05
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/update-app-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
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 ""
Expand Down

0 comments on commit f4b9b05

Please sign in to comment.