π Sync from Upstream #2405
This file contains hidden or 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 from Upstream | |
| on: | |
| schedule: | |
| - cron: '*/30 * * * *' | |
| workflow_dispatch: | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: π¦ Checkout the repo | |
| uses: actions/checkout@v3 | |
| with: | |
| persist-credentials: false | |
| fetch-depth: 0 | |
| - name: π οΈ Set Git identity | |
| run: | | |
| git config user.name "GitHub Actions" | |
| git config user.email "actions@github.com" | |
| - name: π Add upstream remote | |
| run: | | |
| git remote add upstream https://github.com/namada-net/namada-interface.git | |
| git fetch upstream | |
| - name: π Merge upstream/main into local main | |
| run: | | |
| git checkout main | |
| git merge upstream/main --allow-unrelated-histories --no-edit || echo "Nothing to merge" | |
| - name: π Push changes to origin | |
| run: | | |
| git push origin main || echo "Nothing to push" |