diff --git a/src/jobs/release.yml b/src/jobs/release.yml index c5be1c1..4c196e4 100644 --- a/src/jobs/release.yml +++ b/src/jobs/release.yml @@ -35,6 +35,12 @@ parameters: type: string default: "2.3.0" description: Specify the full semver versioned tag to use for the GitHub CLI installation. + additional_args: + type: string + default: "" + description: | + Specify additional arguments to pass to the GitHub CLI command. + See the GitHub CLI documentation for a list of available arguments: https://cli.github.com/manual/gh_release_create hostname: type: string default: "github.com" @@ -60,4 +66,5 @@ steps: PARAM_GH_PRERELEASE: <> PARAM_GH_FILES: <> PARAM_GH_TITLE: <> + PARAM_GH_ARGS: <> command: <> diff --git a/src/scripts/release.sh b/src/scripts/release.sh index f0e91e5..3505bb0 100644 --- a/src/scripts/release.sh +++ b/src/scripts/release.sh @@ -25,6 +25,11 @@ fi if [ -n "$PARAM_GH_FILES" ]; then set -- "$@" " $PARAM_GH_FILES" fi + set -- "$@" --repo "$(git config --get remote.origin.url)" -gh release create "$PARAM_GH_TAG" "$@" +# shellcheck disable=SC2086 +gh release create \ + "$PARAM_GH_TAG" \ + $PARAM_GH_ARGS \ + "$@"