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: Sync staging branch to main | |
on: | |
push: | |
branches: | |
- staging | |
workflow_dispatch: | |
jobs: | |
syncStagingToMain: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: main | |
- name: Reset promotion branch | |
run: | | |
git fetch origin staging:staging | |
git reset --hard staging | |
- name: Remove Dockerfile changes | |
run: | | |
git reset HEAD Dockerfile | |
git checkout -- Dockerfile | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
branch: sync-staging-to-main |