Skip to content

Auto update to fresh upstream #60

Auto update to fresh upstream

Auto update to fresh upstream #60

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 }}