Sync Upstream #131
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 Upstream | |
| on: | |
| schedule: | |
| - cron: '32 4 * * *' | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Git | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| - name: Add upstream | |
| run: | | |
| git remote add upstream https://github.com/ton-blockchain/wallets-list.git | |
| git fetch upstream | |
| - name: Merge upstream | |
| run: | | |
| git checkout main | |
| git merge --no-edit --allow-unrelated-histories upstream/main | |
| - name: Push changes | |
| run: | | |
| git push origin main --force | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.MY_TOKEN }} |