File tree Expand file tree Collapse file tree 3 files changed +24
-3
lines changed Expand file tree Collapse file tree 3 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 1515 name : Setup
1616 id : github-script-ts
1717 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
1933
2034 - name : Run prNumber
2135 id : prNumber
3852 PR_NUMBER : ${{ steps.prNumber.outputs.result }}
3953 LABEL : " test"
4054 with :
55+ path : ${{ github.workspace }}/.github
4156 github-token : ${{ secrets.GITHUB_TOKEN }}
4257 function : getLabel
4358
5368 OUTPUT_VALUE : " cool"
5469 uses : ./
5570 with :
71+ path : .github
5672 function : setOutput
5773 github-token : ${{ secrets.GITHUB_TOKEN }}
5874
Original file line number Diff line number Diff line change @@ -66,6 +66,11 @@ export { function1 } from "./function1";
6666 "main" : " dist/index.js" ,
6767 "dependencies" : {
6868 "@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"
6974 }
7075}
7176```
Original file line number Diff line number Diff line change 66 default : ${{ github.token }}
77 path :
88 description : Path to the functions
9- default : . /.github
9+ default : ${{ github.workspace }} /.github
1010 required : true
1111 dist :
1212 description : >
@@ -116,7 +116,7 @@ runs:
116116 id : module
117117 shell : bash
118118 run : |
119- echo "module=${{ github.workspace }}/${{ inputs.path }}/${{ inputs.dist }}/index.js" >> "$GITHUB_OUTPUT"
119+ echo "module=${{ inputs.path }}/${{ inputs.dist }}/index.js" >> "$GITHUB_OUTPUT"
120120
121121 - name : Execute script
122122 if : inputs.function != ''
You can’t perform that action at this time.
0 commit comments