This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +22
-9
lines changed
Expand file tree Collapse file tree 3 files changed +22
-9
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ permissions:
88 contents : read
99
1010jobs :
11- build :
11+ cleanup-staging :
1212 runs-on : ubuntu-latest
1313 steps :
1414 - name : Git Checkout
Original file line number Diff line number Diff line change 66 - main
77
88jobs :
9- build_and_deploy :
9+ build-and-deploy :
1010 runs-on : ubuntu-latest
1111 steps :
1212 - name : Git Checkout
1313 uses : actions/checkout@v2
14+ with :
15+ ref : main
1416
1517 - name : Setup Node.js
1618 uses : actions/setup-node@v3
Original file line number Diff line number Diff line change @@ -2,26 +2,37 @@ name: Syncing API docs
22
33on :
44 schedule :
5- - cron : " 0 * * * *"
5+ - cron : ' 0 0 * * *'
66
77jobs :
8- sync_api_docs :
8+ sync-api-docs :
99 runs-on : ubuntu-latest
1010 steps :
11- - name : Checkout project
11+ - name : Git Checkout
1212 uses : actions/checkout@v3
13+ with :
14+ ref : main
15+
16+ - name : Setup Pages
17+ uses : actions/configure-pages@v2
1318
14- - name : Set up node
19+ - name : Setup Node.js
1520 uses : actions/setup-node@v3
21+ with :
22+ node-version-file : ' .nvmrc'
23+ cache : ' npm'
24+
25+ - name : Install NPM packages
26+ run : npm ci
1627
17- - name : " Retrieve Sync API specifications"
28+ - name : ' Retrieve Sync API specifications'
1829 shell : bash
1930 run : |
2031 npm run sync-api
2132
2233 - name : Check for file changes & commit files
2334 uses : stefanzweifel/git-auto-commit-action@v4
2435 with :
25- commit_message : " chore(api): sync auto-generated docs"
36+ commit_message : ' chore(api): sync auto-generated docs'
2637 github_token : ${{ github.token }}
27- branch : " main"
38+ branch : ' main'
You can’t perform that action at this time.
0 commit comments