Merge pull request #8 from unkcpz/staging #1
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 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
# after main updated (merge from staging), sync staging to main | |
sync-staging: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config --global user.name "GitHub Actions Bot" | |
git config --global user.email "" | |
- name: Update Test Branch | |
run: | | |
git checkout main | |
git fetch origin | |
git checkout staging | |
git pull | |
git merge origin/main | |
git push origin staging |