forked from aptos-labs/aptos-indexer-processors
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 1.2 KB
/
auto-update-upstream-main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 }}