feat(action): добавление параметра prefix
Reviewed-on: #3 Co-authored-by: Arswarog <arswarog@yandex.ru> Co-committed-by: Arswarog <arswarog@yandex.ru>
This commit was merged in pull request #3.
This commit is contained in:
@@ -8,6 +8,9 @@ inputs:
|
||||
on-broken-links:
|
||||
description: 'Behavior on broken links: throw, warn, or ignore'
|
||||
default: 'throw'
|
||||
prefix:
|
||||
description: '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="${PREFIX}/${S3_PATH}"
|
||||
fi
|
||||
|
||||
echo "TARGET_URL=$URL" >> $GITHUB_ENV
|
||||
echo "S3_PATH=$S3_PATH" >> $GITHUB_ENV
|
||||
|
||||
|
||||
Reference in New Issue
Block a user