Rebase Sandbox with Master #61
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
# Github action to rebase sandbox with master | |
name: Rebase Sandbox with Master | |
# Run when manually triggered by a workflow dispatch event (GitHub API) | |
on: | |
workflow_dispatch: | |
jobs: | |
rebase-sandbox-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the Sandbox branch from Github | |
uses: actions/checkout@v3 | |
with: | |
ref: sandbox | |
- name: Rebase the Sandbox branch on Github | |
run: | | |
git fetch --all --quiet | |
git switch master | |
git checkout sandbox | |
git config --global user.name "BTS eGov" | |
git config --global user.email [email protected] | |
git rebase -X ours origin/master | |
git push -f |