-
-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (36 loc) · 1.17 KB
/
weekly.yml
File metadata and controls
42 lines (36 loc) · 1.17 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
name: Weekly
on:
schedule:
- cron: '0 12 * * Mon'
workflow_dispatch:
jobs:
showcase:
name: Update Showcase Sites
if: github.repository_owner == 'Open-reSource'
runs-on: ubuntu-latest
steps:
- name: Check out code using Git
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
cache: npm
node-version: 24
- name: Install dependencies
run: npm ci
- name: Run update:showcase script
id: showcase
run: npm run update:showcase
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Pull Request
id: createpr
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
branch: ci/docgen-showcase
token: ${{ secrets.SHOWCASE_PR_GITHUB_TOKEN }}
add-paths: src/content/showcase/*.json
commit-message: 'ci: update showcase'
title: 'ci: update showcase'
body: ${{ steps.showcase.outputs.prBody }}
labels: ci