-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (26 loc) · 924 Bytes
/
update.yml
File metadata and controls
31 lines (26 loc) · 924 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
name: Update model data
on:
schedule:
- cron: '0 0 * * *' # Runs every 24 hours
workflow_dispatch: # Allow manual trigger
jobs:
update-releases:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
ref: data
- name: Fetch repository details
run: |
curl -s https://api.github.com/repos/REDasmOrg/REDasm > repository.json
- name: Fetch releases
run: |
curl -s https://api.github.com/repos/REDasmOrg/REDasm/releases > releases.json
- name: Push updates to data branch
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add repository.json releases.json
git commit -m "chore: update model" || echo "No changes to commit"
git push -f origin data