This repository has been archived by the owner on Dec 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from tshion/feature/#6_fix_error_update_version
#6 アプリバージョンを更新するGitHub Actions の調整
- Loading branch information
Showing
1 changed file
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 "" | ||
|