-
Notifications
You must be signed in to change notification settings - Fork 148
41 lines (38 loc) · 1.35 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
name: 'Update docs'
on:
repository_dispatch:
types: [doc_changes]
workflow_dispatch:
inputs:
sha:
type: string
description: The SHA of the `electron/electron` commit
required: true
permissions: {}
jobs:
update-docs:
runs-on: ubuntu-latest
environment: docs-updater
steps:
- name: Generate GitHub App token
uses: electron/github-app-auth-action@384fd19694fe7b6dcc9a684746c6976ad78228ae # v1.1.1
id: generate-token
with:
creds: ${{ secrets.DOCS_UPDATER_GH_APP_CREDS }}
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag: v4.2.2
with:
token: ${{ steps.generate-token.outputs.token }}
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # tag: v4.0.4
with:
node-version: 20
- name: Install dependencies
uses: bahmutov/npm-install@dc9579d3dfb9c0e7a1f56c194eefcb8e2c9f0da5 # tag: v1.10.3
- name: Prebuild
run: |
yarn pre-build ${{ github.event.client_payload.sha || github.event.inputs.sha }}
git add .
- name: Push changes
uses: dsanders11/github-app-commit-action@43de6da2f4d927e997c0784c7a0b61bd19ad6aac # v1.5.0
with:
message: 'chore: update ref to docs (🤖)'
token: ${{ steps.generate-token.outputs.token }}