Auto update to fresh upstream #79
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: "Auto update to fresh upstream" | |
on: | |
# Allow us to run this specific workflow without a PR | |
workflow_dispatch: | |
schedule: | |
- cron: "30 5 * * 1" | |
# cancel redundant builds | |
concurrency: | |
# for push and workflow_dispatch events we use `github.sha` in the concurrency group and don't really cancel each other out/limit concurrency | |
# for pull_request events newer jobs cancel earlier jobs to save on CI etc. | |
group: ${{ github.workflow }}-${{ github.event_name }}-${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.sha || github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
autoupdate: | |
permissions: write-all | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
repository: byzantion-xyz/aptos-indexer-processors | |
ref: main | |
token: ${{ secrets.GH_TOKEN }} | |
- run: | | |
git config --global user.email "${{ secrets.GH_EMAIL }}" | |
git config --global user.name "${{ secrets.GH_USER }}" | |
sudo apt install libdw-dev -y | |
- run: bash scripts/auto-update-upstream.sh | |
env: | |
GH_USER: ${{ secrets.GH_USER }} | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |