-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (25 loc) · 785 Bytes
/
Copy pathupdate.yml
File metadata and controls
33 lines (25 loc) · 785 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
name: Update Data
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Daily at midnight UTC
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Build
run: cargo build --release
- name: Generate data.nix
run: cargo run --release -- --output data.nix
- name: Commit and push changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add data.nix
git commit -m "Update data.nix with latest nodejs versions" || echo "No changes to commit"
git push