diff --git a/action.yaml b/action.yaml index 574e853..4e4882a 100644 --- a/action.yaml +++ b/action.yaml @@ -30,6 +30,13 @@ inputs: "notice" to warn on the Actions page, or "error" to fail the workflow step. default: "unset" + warning-no-connectors: + required: false + description: | + Set to "skip" to skip to the next mapping file, + "notice" to warn on the Actions page, + or "error" to fail the workflow step. + default: "unset" warning-dupe: required: false description: | @@ -69,6 +76,7 @@ runs: WARNINGS: ${{ inputs.warnings }} WARNING_NO_CID: ${{ inputs.warning-no-cid }} WARNING_NO_IMAGE: ${{ inputs.warning-no-image }} + WARNING_NO_CONNECTORS: ${{ inputs.warning-no-connectors }} WARNING_DUPE: ${{ inputs.warning-dupe }} COLS: ${{ inputs.columns }} PRINT_COLS: ${{ inputs.print-columns }} diff --git a/main.sh b/main.sh index dc30adc..b0aa3fb 100755 --- a/main.sh +++ b/main.sh @@ -6,6 +6,7 @@ # skip if "skip" # env WARNING_NO_CID # env WARNING_NO_IMAGE +# env WARNING_NO_CONNECTORS # env WARNING_DUPE # same options as WARNINGS @@ -13,6 +14,8 @@ if [ "$DEBUG" = "true" ]; then echo "WARNINGS: $WARNINGS" echo "WARNING_NO_CID: $WARNING_NO_CID" echo "WARNING_NO_IMAGE: $WARNING_NO_IMAGE" + echo "WARNING_NO_CONNECTORS: $WARNING_NO_CONNECTORS" + echo "WARNING_DUPE: $WARNING_DUPE" fi SCRIPTDIR=$(dirname "$0") @@ -42,7 +45,7 @@ if [ "$DEBUG" = "true" ]; then fi if [ $(echo -n "$CONNECTORS" | wc -l) -eq 0 ]; then - echo "No connectors found" + handle_warning "$WARNING_NO_CONNECTORS" "WARNING: No connectors found" exit fi