-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.18 KB
/
Copy pathrefresh-data.yml
File metadata and controls
48 lines (40 loc) · 1.18 KB
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
37
38
39
40
41
42
43
44
45
46
47
name: Refresh Top Game Data
on:
workflow_dispatch:
schedule:
- cron: "12 */6 * * *"
jobs:
refresh:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Fetch latest top games
run: npm run fetch:data
- name: Create data refresh pull request
uses: peter-evans/create-pull-request@v7
continue-on-error: true
with:
branch: chore/refresh-top-games
delete-branch: true
title: "chore(data): refresh top game feeds"
commit-message: "chore(data): refresh top game feeds"
body: |
Automated data refresh from `npm run fetch:data`.
labels: |
automated
data
- name: Refresh result
if: always()
run: |
echo "Data refresh completed. If PR creation is blocked by repository policy, use branch chore/refresh-top-games to open a PR manually."