-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (28 loc) · 902 Bytes
/
iOS_Scrape.yml
File metadata and controls
36 lines (28 loc) · 902 Bytes
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: Run iosRefScraper
on:
schedule:
- cron: '0 */3 * * *' # Runs every 3 hours
workflow_dispatch: # Allows manual triggering of the workflow
jobs:
run-iosRefScraper:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Clean and install dependencies
run: |
rm -rf node_modules
npm install
- name: Run iosRefScraper
run: node tools/iosRefScraper.js
- name: Commit changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add devutils/devicelist.json
git commit -m "Update devicelist.json via GitHub Actions" || echo "No changes to commit"
git push