Skip to content

Commit f77bc39

Browse files
committed
feat: auto data collection
1 parent 2a0e63d commit f77bc39

File tree

3 files changed

+11
-58
lines changed

3 files changed

+11
-58
lines changed

.github/workflows/event-update.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,20 @@ jobs:
1111
contents: write
1212
steps:
1313
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
1415
- name: Configure date
1516
run: |
1617
echo "ACTION_DATE=$(date --rfc-3339=date)" >> ${GITHUB_ENV}
18+
- name: Install npm packages
19+
run: |
20+
npm i
21+
- name: Compile TS files
22+
run: |
23+
npx tsc ./bin/AutoScraper.ts
1724
- name: Gather Event Data
18-
run: node ./bin/actions.js
19-
- uses: stefanzweifel/git-auto-commit-action@v4
25+
run: node ./bin/event-update.js
26+
- name: Commit changes to data
27+
uses: stefanzweifel/git-auto-commit-action@v4
2028
with:
29+
file_pattern: 'data/*.json'
2130
commit_message: "Event data update: ${{env.ACTION_DATE}}"

bin/AutoScraper.js

-56
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)