-
-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (36 loc) · 1.04 KB
/
weekly.yaml
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@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: npm
node-version: 20
- 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@v4
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