π :: 1.7.1 #27
Workflow file for this run
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: Move version to main branch | |
on: | |
release: | |
types: [published] | |
jobs: | |
deploy: | |
runs-on: macOS-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set env | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: git merge to main | |
run: | | |
git config --global user.name 'xquare-admin' | |
git config --global user.email '[email protected]' | |
git config pull.rebase false | |
git checkout -t origin/main | |
echo $(git merge -Xtheirs origin/release -m "π :: Deploy version ${{ env.RELEASE_VERSION }} to AppStore") | |
git push |