-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (28 loc) · 933 Bytes
/
api-level-generator.yml
File metadata and controls
35 lines (28 loc) · 933 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 apiLevelGenerator
on:
schedule:
- cron: '0 */3 * * *' # Runs every 3 hours
workflow_dispatch: # Allows manual triggering of the workflow
jobs:
run-apiLevelGenerator:
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 apiLevelGenerator
run: node tools/apiLevelGenerator.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/androidApiVersions.json
git commit -m "Update androidApiVersions.json via GitHub Actions" || echo "No changes to commit"
git push