forked from benc-uk/workflow-dispatch
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: upgrade libs, node 20 #16
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
12.20.0 | ||
20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ name: 'Workflow Dispatch and wait' | |
description: 'Trigger and chain GitHub Actions workflows with workflow_dispatch events and wait for result' | ||
|
||
inputs: | ||
workflow: | ||
workflow: | ||
description: 'Name or ID of workflow to run' | ||
required: true | ||
token: | ||
token: | ||
description: 'GitHub token with repo write access, can NOT use secrets.GITHUB_TOKEN, see readme' | ||
required: true | ||
inputs: | ||
|
@@ -23,7 +23,7 @@ inputs: | |
display-workflow-run-url: | ||
description: 'Get the URL of the triggered workflow and display it in logs (useful to follow the progress of the triggered workflow)' | ||
required: false | ||
default: true | ||
default: "true" | ||
display-workflow-run-url-interval: | ||
description: 'The time to wait (+unit) between two polls to get the URL of the workflow run' | ||
required: false | ||
|
@@ -35,22 +35,22 @@ inputs: | |
wait-for-completion: | ||
description: 'Block until the triggered workflow has finished' | ||
required: false | ||
default: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, why ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
default: "true" | ||
wait-for-completion-timeout: | ||
description: 'Maximum amount of time (+unit) to wait to mark workflow as timed out' | ||
description: 'Maximum amount of time (+unit) to wait to mark workflow as timed out' | ||
required: false | ||
default: 1h | ||
wait-for-completion-interval: | ||
description: 'Time to wait (+unit) between two polls to get run status' | ||
required: false | ||
default: 1m | ||
workflow-logs: | ||
description: 'Indicate what to do with logs of the triggered workflow. `ignore` do not retrieve logs from tiggered workflow. `print` retrieves logs from triggered workflow and print in the workflow that triggered the other workflow.' | ||
description: 'Indicate what to do with logs of the triggered workflow. "ignore" do not retrieve logs from tiggered workflow. "print" retrieves logs from triggered workflow and print in the workflow that triggered the other workflow.' | ||
required: false | ||
default: ignore | ||
|
||
runs: | ||
using: 'node16' | ||
using: 'node20' | ||
main: 'dist/index.js' | ||
|
||
branding: | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you add quotes ? It should be a boolean value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this line be changed? https://github.com/aurelien-baudet/workflow-dispatch/blob/c2b3c6dfb91343cf66073ac553e613483b046e1c/src/utils.ts#L44
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really, why ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the schema, the type of
default
isstring
. However, I don't think it will actually change any behaviour as GHA likely coerces it into a string anyway. This StackOverflow answer may also help explain.It may be worth adding the quotes if only to avoid your editor showing a syntax error, but it should probably then use single-quotes to be consistent with the rest of the file.
I also don't think this line should be changed. Whether the input is processed as a string or boolean is dependent on whether
core.getInput
orcore.getBooleanInput
is used in the script: https://www.npmjs.com/package/@actions/core#inputsoutputs