Skip to content

fix: added the missing declarations #177#178

Merged
easingthemes merged 2 commits intoeasingthemes:mainfrom
skyArony:fix-#177
Feb 18, 2024
Merged

fix: added the missing declarations #177#178
easingthemes merged 2 commits intoeasingthemes:mainfrom
skyArony:fix-#177

Conversation

@skyArony
Copy link

@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
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.

2 participants