Skip to content

Read workflow_search input as a boolean#273

Merged
dawidd6 merged 1 commit into
dawidd6:masterfrom
klutchell:workflow-search-boolean
Feb 21, 2024
Merged

Read workflow_search input as a boolean#273
dawidd6 merged 1 commit into
dawidd6:masterfrom
klutchell:workflow-search-boolean

Conversation

@klutchell

Copy link
Copy Markdown
Contributor

In commit f6b0bac we added a check for !workflow_search before using the current workflow, but with a string this always evaluates to true.

This results in always searching workflows, and if enough inputs are unspecified it can find the wrong run id.

@dawidd6 dawidd6 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spotting this.

In commit f6b0bac we added
a check for !workflow_search before using the current workflow,
but with a string this always evaluates to true.

This results in always searching workflows, and if enough
inputs are unspecified it can find the wrong run id.

Signed-off-by: Kyle Harding <kyle@balena.io>
@klutchell klutchell force-pushed the workflow-search-boolean branch from d29478b to e1e0f29 Compare February 21, 2024 15:30
@dawidd6 dawidd6 merged commit 71072fb into dawidd6:master Feb 21, 2024
dawidd6 pushed a commit that referenced this pull request Feb 21, 2024
In commit f6b0bac we added
a check for !workflow_search before using the current workflow,
but with a string this always evaluates to true.

This results in always searching workflows, and if enough
inputs are unspecified it can find the wrong run id.

Signed-off-by: Kyle Harding <kyle@balena.io>
dawidd6 added a commit that referenced this pull request Feb 21, 2024
In commit f6b0bac we added
a check for !workflow_search before using the current workflow,
but with a string this always evaluates to true.

This results in always searching workflows, and if enough
inputs are unspecified it can find the wrong run id.

Signed-off-by: Kyle Harding <kyle@balena.io>
Co-authored-by: Kyle Harding <kyle@balena.io>
@romangg

romangg commented Feb 21, 2024

Copy link
Copy Markdown
Contributor

Thanks @klutchell!

@klutchell

Copy link
Copy Markdown
Contributor Author

No problem, thank you for maintaining this project!

Ma-ve pushed a commit to Ma-ve/action-download-artifact-with-retry that referenced this pull request Jun 24, 2025
In commit f6b0bac we added
a check for !workflow_search before using the current workflow,
but with a string this always evaluates to true.

This results in always searching workflows, and if enough
inputs are unspecified it can find the wrong run id.

Signed-off-by: Kyle Harding <kyle@balena.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants