Skip to content

Commit

Permalink
fix: core.getInput returns string type (#138)
Browse files Browse the repository at this point in the history
* fix incorrect ssh input check

* fix incorrect ssh input check

* Fixed true check

* Try running in node 16 container

* Try running in node 16 container

* back to ubuntu-latest

* node setup
  • Loading branch information
dcbickfo authored Oct 2, 2023
1 parent e2fd767 commit af2fa89
Show file tree
Hide file tree
Showing 8 changed files with 7,079 additions and 1,220 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@ jobs:
units:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm test

# test action works running from the graph
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./
with:
milliseconds: 1000
2 changes: 1 addition & 1 deletion cleanup.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ async function run() {
const status = core.getInput("job_status")
const enableSSH = core.getInput("enable_ssh")
await slack();
if (enableSSH && (status === "failure" || core.getInput("ssh_always"))) {
if (enableSSH === "true" && (status === "failure" || core.getInput("ssh_always") === "true")) {
await ssh();
}
} catch (error) {
Expand Down
2,871 changes: 2,327 additions & 544 deletions dist/cleanup.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cleanup.js.map

Large diffs are not rendered by default.

2,356 changes: 2,323 additions & 33 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit af2fa89

Please sign in to comment.