diff --git a/action.yml b/action.yml index dbc9de4..d35dc15 100644 --- a/action.yml +++ b/action.yml @@ -8,6 +8,9 @@ inputs: on-broken-links: description: 'Behavior on broken links: throw, warn, or ignore' default: 'throw' + prefix: + description: 'Additional prefix for S3 path' + default: '' runs: using: 'composite' @@ -27,6 +30,11 @@ runs: S3_PATH="${ORG}.${REPO}.${REF}" fi + PREFIX="${{ inputs.prefix }}" + if [[ -n "$PREFIX" ]]; then + S3_PATH="${S3_PATH}/${PREFIX}" + fi + echo "TARGET_URL=$URL" >> $GITHUB_ENV echo "S3_PATH=$S3_PATH" >> $GITHUB_ENV