Skip to content

Commit baf844f

Browse files
authored
Merge branch 'main' into renovate/lock-file-maintenance
2 parents 9186d75 + 9a51160 commit baf844f

File tree

3 files changed

+24
-5
lines changed

3 files changed

+24
-5
lines changed

.github/workflows/test.yaml

+17-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,21 @@ jobs:
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
@@ -38,6 +52,7 @@ jobs:
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

@@ -53,6 +68,7 @@ jobs:
5368
OUTPUT_VALUE: "cool"
5469
uses: ./
5570
with:
71+
path: .github
5672
function: setOutput
5773
github-token: ${{ secrets.GITHUB_TOKEN }}
5874

README.md

+5
Original file line numberDiff line numberDiff 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
```

action.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ inputs:
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: >
@@ -66,8 +66,6 @@ runs:
6666
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
6767
with:
6868
node-version: ${{ env.node_version }}
69-
cache: npm
70-
cache-dependency-path: ${{ inputs.path }}/package-lock.json
7169

7270
- name: Get npm cache directory
7371
if: inputs.function == ''
@@ -116,7 +114,7 @@ runs:
116114
id: module
117115
shell: bash
118116
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"
120118
121119
- name: Execute script
122120
if: inputs.function != ''

0 commit comments

Comments
 (0)