Skip to content

Commit

Permalink
Merge pull request #26 from urcomputeringpal/jnewland-patch-1
Browse files Browse the repository at this point in the history
Allow fully qualified paths
  • Loading branch information
jnewland authored May 15, 2023
2 parents f097dc9 + 8ce9bb8 commit d7f3d05
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -53,6 +68,7 @@ jobs:
OUTPUT_VALUE: "cool"
uses: ./
with:
path: .github
function: setOutput
github-token: ${{ secrets.GITHUB_TOKEN }}

Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
```
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ inputs:
default: ${{ github.token }}
path:
description: Path to the functions
default: ./.github
default: ${{ github.workspace }}/.github
required: true
dist:
description: >
Expand Down Expand Up @@ -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 != ''
Expand Down

0 comments on commit d7f3d05

Please sign in to comment.