-
Notifications
You must be signed in to change notification settings - Fork 21
37 lines (31 loc) · 1.03 KB
/
update-jsii-artifacts.yml
File metadata and controls
37 lines (31 loc) · 1.03 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
name: Update JSII Artifacts
on:
workflow_dispatch:
jobs:
update:
if: github.event.pull_request.user.login == 'renovate[bot]' || github.actor == 'renovate[bot]'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: '20'
- name: Run JSII commands
run: |
npm ci
npx jsii --silence-warnings=reserved-word
npx jsii-docgen -o API.md
- name: Commit changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add -A
if ! git diff --staged --quiet; then
git commit -m "chore: update JSII artifacts"
git push
fi