Upload #10
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
name: Upload | |
permissions: | |
contents: write | |
on: | |
workflow_dispatch: | |
#inputs: | |
# version: | |
# description: 'Version Number' | |
# required: true | |
jobs: | |
merge_and_update: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
- name: Force merge develop into master | |
run: | | |
git checkout master | |
git merge -X theirs --no-edit origin/develop || ( | |
git merge --abort | |
git reset --hard origin/develop | |
echo "Merge failed. Master reset to develop." | |
) | |
# We manually change the version number for now | |
#- name: Update version in Xcode project | |
# run: | | |
# /usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${{ github.event.inputs.version }}" "Supporting Files/Info.plist" | |
# /usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier org.YuKaBu.app" "Supporting Files/Info.plist" | |
#- name: Commit version change | |
# run: | | |
# git add . | |
# git commit -m "Upload with Version ${{ github.event.inputs.version }}" --allow-empty | |
- name: Force push changes | |
run: git push --force origin master |