-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (28 loc) · 879 Bytes
/
scrape.yml
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
34
35
name: "Update Channel Info"
on:
schedule:
- cron: '*/10 * * * *'
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Configure Git
run: |
git config user.name github-actions
git config user.email [email protected]
- name: fetch from cache
uses: actions/cache@v4
with:
path: updater.bundle
key: ${{ runner.os }}-bundle-${{ hashFiles('**/flake.lock') }}-${{ hashFiles('**/*.nix') }}-${{ hashFiles('**/*.nim*') }}
- name: update JSON
run: ./updater.bundle -d:$PWD
- name: create commit
run: git commit -a -m "update sources.json" || true
- name: Push commit with updated inputs
run: |
git pull --rebase --autostash
git push