[RELEASE] tangle-dapp v0.0.10 #3
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: Auto Sync Master with Develop | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
sync-branches: | |
if: "startsWith(github.event.head_commit.message, '[RELEASE]')" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Develop | |
uses: actions/checkout@v2 | |
with: | |
ref: develop | |
- name: Configure Git | |
run: | | |
git config user.name "github-actions[bot]" | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
- name: Checkout Master and Rebase Develop onto Master | |
run: | | |
git fetch origin master:master | |
git checkout master | |
git rebase develop | |
- name: Push Changes to Master | |
run: git push origin master --force-with-lease | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |