Skip to content

Commit 0fa7065

Browse files
feat: cppref migrate progress
1 parent 965cc45 commit 0fa7065

File tree

5 files changed

+13431
-1
lines changed

5 files changed

+13431
-1
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Update Migration Progress
2+
3+
on:
4+
schedule:
5+
- cron: '0 * * * *'
6+
workflow_dispatch:
7+
inputs:
8+
force:
9+
description: 'Force update even if no changes'
10+
required: false
11+
type: boolean
12+
13+
jobs:
14+
update-progress:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: write
18+
pull-requests: read
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v6
22+
with:
23+
fetch-depth: 0
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v6
28+
with:
29+
node-version: "22"
30+
cache: "npm"
31+
32+
- name: Install dependencies
33+
run: npm ci
34+
35+
- name: Run update migration progress script
36+
run: npm run update-migrate-progress
37+
38+
- name: Check for changes
39+
id: git-check
40+
run: |
41+
git diff --quiet CPPREF_MIGRATE_PROGRESS.md || echo "has_changes=true" >> $GITHUB_OUTPUT
42+
43+
- name: Commit and push if changes
44+
if: steps.git-check.outputs.has_changes == 'true'
45+
run: |
46+
git config user.name "github-actions[bot]"
47+
git config user.email "github-actions[bot]@users.noreply.github.com"
48+
git add CPPREF_MIGRATE_PROGRESS.md
49+
git commit -m "chore: update migration progress [skip ci]"
50+
git push

0 commit comments

Comments
 (0)