Merge pull request #455 from skip-mev/eg/release-5 #161
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: Deploy (testnet) | |
on: | |
pull_request: | |
branches: [main] | |
types: [closed] | |
push: | |
branches: [main] | |
repository_dispatch: | |
types: [deploy-testnet] | |
workflow_dispatch: | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- id: checkout | |
name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: testnet | |
- id: configure | |
name: configure | |
run: git config pull.ff true | |
- id: pull-main | |
name: Pull latest 'main' | |
run: git pull --ff-only origin main | |
- id: diff-check | |
name: Check if 'testnet' is behind 'main' | |
run: git diff --exit-code origin/main | |
- id: fast-forward | |
name: Fast forward 'main' → 'testnet' | |
run: git merge --ff-only origin/main | |
- id: push-testnet | |
name: Push latest 'testnet' | |
run: git push --set-upstream origin testnet |