Stage #169
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: Stage | |
on: | |
workflow_dispatch: | |
jobs: | |
stage: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- name: git config | |
env: | |
GH_APP_USER: ${{ vars.GH_APP_USER }} | |
run: | | |
git config --global user.name $GH_APP_USER | |
git config --global pull.rebase false | |
- uses: actions/create-github-app-token@v1 | |
id: app-token | |
with: | |
app-id: ${{ vars.GH_APP_ID }} | |
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
token: ${{ steps.app-token.outputs.token }} | |
- name: Checkout release branch | |
run: git switch release || git switch -c release | |
- name: Merge main branch to release branch | |
run: git merge -X theirs main | |
- name: Git push | |
run: git push origin release |