File tree 3 files changed +24
-5
lines changed
3 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 15
15
name : Setup
16
16
id : github-script-ts
17
17
with :
18
- build : npm run format && npm run test && npm run build
18
+ build : npm run format && npm run test && npm run build
19
+
20
+ - uses : ./
21
+ name : Setup
22
+ id : github-script-ts-2
23
+ with :
24
+ path : .github
25
+ build : npm run format && npm run test && npm run build
26
+
27
+ - uses : ./
28
+ name : Setup
29
+ id : github-script-ts-3
30
+ with :
31
+ path : ${{ github.workspace }}/.github
32
+ build : npm run format && npm run test && npm run build
19
33
20
34
- name : Run prNumber
21
35
id : prNumber
38
52
PR_NUMBER : ${{ steps.prNumber.outputs.result }}
39
53
LABEL : " test"
40
54
with :
55
+ path : ${{ github.workspace }}/.github
41
56
github-token : ${{ secrets.GITHUB_TOKEN }}
42
57
function : getLabel
43
58
53
68
OUTPUT_VALUE : " cool"
54
69
uses : ./
55
70
with :
71
+ path : .github
56
72
function : setOutput
57
73
github-token : ${{ secrets.GITHUB_TOKEN }}
58
74
Original file line number Diff line number Diff line change @@ -66,6 +66,11 @@ export { function1 } from "./function1";
66
66
"main" : " dist/index.js" ,
67
67
"dependencies" : {
68
68
"@urcomputeringpal/github-script-ts" : " 0.0.7"
69
+ },
70
+ "devDependencies" : {
71
+ "@types/node" : " 16.18.30" ,
72
+ "ts-loader" : " 9.4.2" ,
73
+ "typescript" : " 4.9.5"
69
74
}
70
75
}
71
76
```
Original file line number Diff line number Diff line change 6
6
default : ${{ github.token }}
7
7
path :
8
8
description : Path to the functions
9
- default : . /.github
9
+ default : ${{ github.workspace }} /.github
10
10
required : true
11
11
dist :
12
12
description : >
66
66
uses : actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
67
67
with :
68
68
node-version : ${{ env.node_version }}
69
- cache : npm
70
- cache-dependency-path : ${{ inputs.path }}/package-lock.json
71
69
72
70
- name : Get npm cache directory
73
71
if : inputs.function == ''
@@ -116,7 +114,7 @@ runs:
116
114
id : module
117
115
shell : bash
118
116
run : |
119
- echo "module=${{ github.workspace }}/${{ inputs.path }}/${{ inputs.dist }}/index.js" >> "$GITHUB_OUTPUT"
117
+ echo "module=${{ inputs.path }}/${{ inputs.dist }}/index.js" >> "$GITHUB_OUTPUT"
120
118
121
119
- name : Execute script
122
120
if : inputs.function != ''
You can’t perform that action at this time.
0 commit comments