File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 13
13
uses : actions/setup-node@v3
14
14
with :
15
15
node-version : 20
16
+ - name : Verify that action.yml files are in sync
17
+ run : |
18
+ npm run update-detached-action.yml &&
19
+ if ! git diff --exit-code \*action.yml
20
+ then
21
+ echo '::error::action.yml files are not in sync, maybe run `npm run update-detached-action.yml`?'
22
+ exit 1
23
+ fi
16
24
- name : Install dependencies
17
25
run : npm ci
18
26
- name : Run tests
24
32
- name : Verify that the project is built
25
33
run : |
26
34
if [[ -n $(git status -s) ]]; then
27
- echo "ERROR: generated dist/ differs from the current sources"
35
+ echo "ERROR: generated lib/ differs from the current sources"
36
+ git status -s
28
37
git diff
29
38
exit 1
30
39
fi
Original file line number Diff line number Diff line change @@ -64,4 +64,3 @@ outputs:
64
64
description : ' The raw SSH address without the "ssh" prefix (only set when detached mode is enabled)'
65
65
web-url :
66
66
description : ' The web URL to connect to the tmate session (only set when detached mode is enabled and web URL is available)'
67
-
Original file line number Diff line number Diff line change 7
7
"scripts" : {
8
8
"start" : " node src/index.js" ,
9
9
"build" : " ncc build src/main.js -o lib" ,
10
+ "update-detached-action.yml" : " sed '/^runs:$/{N;N;N;s/lib\\ //..\\ /&/g;};/^ detached:/{N;N;N;s/\\ (default: .\\ )false/\\ 1true/g;}' action.yml >detached/action.yml" ,
10
11
"test" : " GITHUB_EVENT_PATH= jest"
11
12
},
12
13
"repository" : {
You can’t perform that action at this time.
0 commit comments