-
Notifications
You must be signed in to change notification settings - Fork 159
77 lines (64 loc) · 2.21 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Weekly
on:
schedule:
- cron: "0 12 * * Mon"
workflow_dispatch:
jobs:
integrations:
name: Update Integrations
if: github.repository_owner == 'withastro'
runs-on: ubuntu-latest
steps:
- name: Check out code using Git
uses: actions/checkout@v4
- name: Setup Node.js & install dependencies
uses: ./.github/actions/setup-node-pnpm
- name: Install dev dependencies
run: pnpm install
- name: Search NPM for new and deprecated integrations
run: pnpm run update:integrations --unsafe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Format generated files
run: pnpm run format
- name: Create Pull Request
id: createpr
uses: peter-evans/create-pull-request@v4
with:
branch: ci/docgen-integrations
token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
add-paths: src/content/**/*.md
commit-message: "ci: update integrations"
title: "ci: update integrations"
body: |
This PR is auto-generated by a GitHub action that runs every Monday to update the integrations catalog with data from GitHub and NPM.
labels: ci
showcase:
name: Update Showcase Sites
if: github.repository_owner == 'withastro'
runs-on: ubuntu-22.04
steps:
- name: Check out code using Git
uses: actions/checkout@v4
- name: Install Tools & Dependencies
uses: ./.github/actions/setup-node-pnpm
- name: Install dev dependencies
run: pnpm install
- name: Run update:showcase script
id: showcase
run: pnpm run update:showcase
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Format generated files
run: pnpm run format
- name: Create Pull Request
id: createpr
uses: peter-evans/create-pull-request@v4
with:
branch: ci/docgen-showcase
token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
add-paths: src/content/**/*.yml,src/content/**/*.webp
commit-message: "ci: update showcase"
title: "ci: update showcase"
body: ${{ steps.showcase.outputs.prBody }}
labels: ci