Merge pull request #23 from devzero-inc/staging #15
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: Rebase Staging Branch | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
rebase-staging: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout main branch | |
uses: actions/checkout@v2 | |
with: | |
ref: main | |
- name: Setup Git | |
run: | | |
git config user.name "github-actions[bot]" | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
- name: Pull down all branches | |
run: git pull | |
- name: Checkout staging branch | |
run: git checkout staging | |
- name: Rebase staging on main | |
run: git rebase main | |
- name: Push rebased staging branch | |
run: git push origin staging --force | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |