Repository navigation
48 lines (46 loc) · 1.79 KB
/
Copy pathupdate-api-list.yaml
File metadata and controls
48 lines (46 loc) · 1.79 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
38
39
40
41
42
43
44
45
46
47
48
permissions:
contents: read
on:
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
jobs:
update-api-list:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write # Added for creating issues on failure
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
# This job only runs bin/generate-readme.mjs, so restrict the install to
# the root package instead of all ~280 workspace members.
- run: pnpm install --frozen-lockfile --ignore-scripts --filter google-cloud-node
- run: pnpm run generate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: googleapis/code-suggester@f9fef85aa02459e30e62526abe950341cbbd768b # v5
env:
ACCESS_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
with:
command: pr
force: true
upstream_owner: googleapis
upstream_repo: google-cloud-node
description: 'Update the list of available APIs in the README.'
title: 'docs: update the list of available APIs'
message: 'docs: update the list of available APIs'
branch: update-api-list
git_dir: '.'
- name: Create issue on failure
if: ${{ failure() }}
uses: googleapis/librarian/.github/actions/create-issue-on-failure@baf9b8078c5e98cb90b53088f284fb7b060e195b # main
with:
title: "Update API list failed"
body: "The daily scheduled task to update the API list failed."
mention: "@googleapis/cloud-sdk-nodejs-team"