-
Notifications
You must be signed in to change notification settings - Fork 5
65 lines (57 loc) · 2.04 KB
/
update-docs.yml
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
name: Update Wing Docs
on:
workflow_dispatch: {}
jobs:
update_docs:
name: Update Wing Docs and Create Pull Request
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Login to private npm registry
env:
GITHUB_TOKEN: ${{ secrets.WING_GITHUB_TOKEN }}
run: npm config set @winglang:registry https://npm.pkg.github.com && npm set //npm.pkg.github.com/:_authToken $GITHUB_TOKEN
- name: Install dependencies
run: npm install
- name: Update docs
run: npx tsx scripts/updateDocs.ts
env:
GITHUB_TOKEN: ${{ secrets.WING_GITHUB_TOKEN }}
- name: Update winglibs
run: npx tsx scripts/winglibDocs.ts
env:
GITHUB_TOKEN: ${{ secrets.WING_GITHUB_TOKEN }}
- name: Create Pull Request
id: create-pr
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.WING_GITHUB_TOKEN }}
commit-message: |-
feat(docs): update docs
Updates the Wing docs. See details in [workflow run].
[Workflow Run]: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
------
*Automatically created via the "update-docs" workflow*
branch: github-actions/update-docs
title: "feat(docs): update docs"
body: |-
feat(docs): update docs
Updates the Wing docs. See details in [workflow run].
[Workflow Run]: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
------
*Automatically created via the "update-docs" workflow*
author: monabot <[email protected]>
committer: monabot <[email protected]>
signoff: true
labels: documentation
delete-branch: true