File tree 2 files changed +14
-3
lines changed
2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 28
28
uses : actions/setup-node@v4
29
29
with :
30
30
node-version : 20
31
+ - name : Check Out 'package.json' From Main
32
+ run : node run.js --only-checkout
33
+ - name : Cache Files
34
+ uses : actions/cache@v4
35
+ with :
36
+ key : antora-${{ hashFiles('package-lock.json', 'antora-playbook.yml') }}
37
+ path : |
38
+ ~/.npm
39
+ ~/.cache/antora
31
40
- name : Install and Run Antora
32
41
env :
33
42
ALGOLIA_APP_ID : 244V8V9FGG
37
46
ARTIFACTORY_PASSWORD : ${{ secrets.ARTIFACTORY_PASSWORD }}
38
47
REFERENCE : ${{ github.event.inputs.build-refname }}
39
48
BUILD_VERSION : ${{ github.event.inputs.build-version }}
40
- run : node run.js
49
+ run : node run.js --no-checkout
41
50
- name : Sync Documentation
42
51
uses :
spring-io/spring-doc-actions/[email protected]
43
52
with :
Original file line number Diff line number Diff line change 7
7
async function main ( ) {
8
8
try {
9
9
checkout ( process . argv . includes ( '--no-checkout' ) )
10
- install ( process . argv . includes ( '--no-install' ) )
11
- run ( process . argv . includes ( '--no-run' ) )
10
+ if ( ! process . argv . includes ( '--only-checkout' ) ) {
11
+ install ( process . argv . includes ( '--no-install' ) )
12
+ run ( process . argv . includes ( '--no-run' ) )
13
+ }
12
14
} catch ( error ) {
13
15
console . log ( "Unexpected error" )
14
16
process . exitCode = ( error . exitCode ) ? error . exitCode : 1
You can’t perform that action at this time.
0 commit comments