-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 969 Bytes
/
ci.yml
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
36
name: ci
on:
schedule:
- cron: '0 0 */14 * *' # run every 14 days at 12am
workflow_dispatch:
jobs:
generate-and-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Run games-gen
run: cd games-gen && cargo run
- name: Check for Changes
id: check_changes
run: |
git diff --exit-code --quiet || echo "Changes detected" && echo "::set-output name=changes::true"
- name: Create Pull Request
if: steps.check_changes.outputs.changes == 'true'
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.TOKEN }}
branch: generated-files
title: "Automated Update: Games"
body: "This PR updates the generated games.json"
labels: "auto-generated"
delete-branch: true