Skip to content
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

fix: added the missing declarations #177 #178

Merged
merged 2 commits into from
Feb 18, 2024

Conversation

skyArony
Copy link
Contributor

@skyArony skyArony commented Feb 2, 2024

The commits added by the #141 work as expected, but there is a lack of relevant declarations in action.yml, leading to:

  1. VS Code prompting Invalid action input 'SCRIPT_BEFORE_REQUIRED' and Invalid action input 'SCRIPT_AFTER_REQUIRED'
  2. GitHub Action execution displaying a warning: "Unexpected input(s) 'SCRIPT_BEFORE_REQUIRED', 'SCRIPT_AFTER_REQUIRED', valid inputs are ['SSH_PRIVATE_KEY', 'REMOTE_HOST', 'REMOTE_USER', 'REMOTE_PORT', 'SOURCE', 'TARGET', 'ARGS', 'SSH_CMD_ARGS', 'EXCLUDE', 'SCRIPT_BEFORE', 'SCRIPT_AFTER']".

Therefore, I have added the relevant declarations in the PR to fix this issue #177

@skyArony skyArony changed the title fix: added the missing declarations #177 fix: added the missing declarations Feb 2, 2024
@skyArony skyArony changed the title fix: added the missing declarations fix: added the missing declarations #177 Feb 2, 2024
Copy link
Owner

@easingthemes easingthemes left a comment

Choose a reason for hiding this comment

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

Thanks

action.yml Outdated
SCRIPT_BEFORE_REQUIRED:
description: "If true, the action will fail if the before script fails"
required: false
default: "false"
Copy link
Owner

Choose a reason for hiding this comment

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

Default should be false -> empty string, "".
Currently it's true -> string "false".

Ideally it should be boolean, but that would require more refactoring since only strings were expected until now.
Just changing to empty string should work fine.

action.yml Outdated
SCRIPT_AFTER_REQUIRED:
description: "If true, the action will fail if the after script fails"
required: false
default: "false"
Copy link
Owner

Choose a reason for hiding this comment

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

Same as for SCRIPT_BEFORE_REQUIRED

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your reminder. I will correct it.

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.

None yet

2 participants