Skip to content

Upload

Upload #7

Workflow file for this run

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."
)
#- 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