-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (38 loc) · 1.11 KB
/
scrape.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
34
35
36
37
38
39
40
41
42
43
44
45
name: Collect ActBlue ticker value
on:
schedule:
- cron: "*/10 * * * *" # every 10 minutes
jobs:
scrape:
runs-on: ubuntu-latest
outputs:
commit_hash: ${{ steps.auto-commit-action.outputs.commit_hash }}
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Run scraper
id: scraper
run: ./scrape.sh
- name: Commit sitewide_raised_amount.txt to GitHub
id: auto-commit-action
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Changed by ${{ env.difference }}
file_pattern: sitewide_raised_amount.txt
insert:
runs-on: ubuntu-latest
needs: scrape
steps:
- name: Checkout the repo
uses: actions/checkout@v4
with:
ref: ${{ needs.scrape.outputs.commit_hash }}
- name: Run inserter
id: inserter
run: ./insert.sh
- name: Commit amounts.csv to GitHub
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: main
commit_message: amounts.csv updated
file_pattern: amounts.csv