Rebase Sandbox with Master #43
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: | |
# Allows external webhook trigger | |
repository_dispatch: | |
types: | |
- rebase-sandbox | |
jobs: | |
rebase-sandbox-and-push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the Sandbox branch from GitHub | |
uses: actions/checkout@v4 | |
with: | |
ref: sandbox | |
- name: Fetch all branches from Git | |
run: | | |
git fetch --all --quiet | |
- name: Configure git user | |
run: | | |
git config --global user.name "BTS eGov" | |
git config --global user.email [email protected] | |
- name: Rebase the Sandbox branch onto master | |
run: | | |
git rebase -X ours origin/master | |
- name: Push sandbox branch to GitHub | |
run: | | |
git push -f |