diff --git a/action.yml b/action.yml index e8abc1a..09d72cb 100644 --- a/action.yml +++ b/action.yml @@ -53,17 +53,17 @@ runs: fi } if ! check_label_exists ${DEPENDENCIES_LABEL}; then - gh label create ${DEPENDENCIES_LABEL} \ + gh label create "${DEPENDENCIES_LABEL}" \ --color "#0366d6" \ --description "Pull requests that update a dependency file" fi if ! check_label_exists ${GO_LABEL}; then - gh label create ${GO_LABEL} \ + gh label create "${GO_LABEL}" \ --color "#16e2e2" \ --description "Pull requests that update Go code" fi if ! check_label_exists ${GOMOD_GO_VERSION_UPDATER_LABEL}; then - gh label create ${GOMOD_GO_VERSION_UPDATER_LABEL} \ + gh label create "${GOMOD_GO_VERSION_UPDATER_LABEL}" \ --color "#F50BAB" \ --description "Pull requests that update Go version in the go.mod file" fi @@ -121,7 +121,7 @@ runs: fi if [ -n "${{ inputs.extra-pr-label }}" ]; then - export GOMOD_GO_VERSION_UPDATER_LABEL_EXTRA="--label ${{ inputs.extra-pr-label }}" + export GOMOD_GO_VERSION_UPDATER_LABEL_EXTRA="--label \"${{ inputs.extra-pr-label }}\"" fi echo "creating pr..." @@ -130,9 +130,9 @@ runs: --body "${GOMOD_GO_VERSION_UPDATER_ACTION_MESSAGE}" \ --fill \ --head "${GOMOD_GO_VERSION_UPDATER_ACTION_BRANCH}" \ - --label ${DEPENDENCIES_LABEL} \ - --label ${GO_LABEL} \ - --label ${GOMOD_GO_VERSION_UPDATER_LABEL} ${GOMOD_GO_VERSION_UPDATER_LABEL_EXTRA} + --label "${DEPENDENCIES_LABEL}" \ + --label "${GO_LABEL}" \ + --label "${GOMOD_GO_VERSION_UPDATER_LABEL}" ${GOMOD_GO_VERSION_UPDATER_LABEL_EXTRA} shell: bash env: GH_TOKEN: ${{ github.token }}