From 01897922ca50f47d3e9921b0b61fbf25ba942487 Mon Sep 17 00:00:00 2001 From: Jesse Newland Date: Mon, 15 May 2023 17:35:23 -0500 Subject: [PATCH 1/3] Allow fully qualified paths --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index ad09818..fbb4a00 100644 --- a/action.yml +++ b/action.yml @@ -6,7 +6,7 @@ inputs: default: ${{ github.token }} path: description: Path to the functions - default: ./.github + default: ${{ github.workspace }}/.github required: true dist: description: > @@ -116,7 +116,7 @@ runs: id: module shell: bash run: | - echo "module=${{ github.workspace }}/${{ inputs.path }}/${{ inputs.dist }}/index.js" >> "$GITHUB_OUTPUT" + echo "module=${{ inputs.path }}/${{ inputs.dist }}/index.js" >> "$GITHUB_OUTPUT" - name: Execute script if: inputs.function != '' From 246cfd35b496fb4058e5fcaf1fc71909bd17ad4c Mon Sep 17 00:00:00 2001 From: Jesse Newland Date: Mon, 15 May 2023 17:40:14 -0500 Subject: [PATCH 2/3] try all --- .github/workflows/test.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index c4765f6..a318f60 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -15,7 +15,21 @@ jobs: name: Setup id: github-script-ts with: - build: npm run format && npm run test && npm run build + build: npm run format && npm run test && npm run build + + - uses: ./ + name: Setup + id: github-script-ts-2 + with: + path: .github + build: npm run format && npm run test && npm run build + + - uses: ./ + name: Setup + id: github-script-ts-3 + with: + path: ${{ github.workspace }}/.github + build: npm run format && npm run test && npm run build - name: Run prNumber id: prNumber @@ -38,6 +52,7 @@ jobs: PR_NUMBER: ${{ steps.prNumber.outputs.result }} LABEL: "test" with: + path: ${{ github.workspace }}/.github github-token: ${{ secrets.GITHUB_TOKEN }} function: getLabel @@ -53,6 +68,7 @@ jobs: OUTPUT_VALUE: "cool" uses: ./ with: + path: .github function: setOutput github-token: ${{ secrets.GITHUB_TOKEN }} From 8ce9bb8d240ae0005b1f09ac31ca8efea8159405 Mon Sep 17 00:00:00 2001 From: Jesse Newland Date: Mon, 15 May 2023 17:43:17 -0500 Subject: [PATCH 3/3] clarify --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 73f934c..1252630 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,11 @@ export { function1 } from "./function1"; "main": "dist/index.js", "dependencies": { "@urcomputeringpal/github-script-ts": "0.0.7" + }, + "devDependencies": { + "@types/node": "16.18.30", + "ts-loader": "9.4.2", + "typescript": "4.9.5" } } ```