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

🚀 :: v0.1.0

🚀 :: v0.1.0 #2

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 'hongsjae'
git config --global user.email '[email protected]'
git config pull.rebase false
git checkout -t origin/master
echo $(git merge -Xtheirs origin/release -m "🚀 :: Deploy version ${{ env.RELEASE_VERSION }} to AppStore")
git push