diff --git a/action.yml b/action.yml index 260753b..60058af 100644 --- a/action.yml +++ b/action.yml @@ -31,7 +31,7 @@ runs: shell: bash run: | #random_hex_color=$(openssl rand -hex 3) - label_exists=$(curl -s -H "Authorization : token ${{ inputs.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository }}/labels | jq '.[].name' | grep ${gitmoji}_gitmoji) + label_exists=$(curl -s -H "Authorization : token ${{ inputs.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository }}/labels | jq '.[].name' | grep ${{steps.get-gitmoji.outputs.gitmoji}}_gitmoji) if [[ -z $label_exists ]]; then curl -s -H "Authorization: token ${{ inputs.GITHUB_TOKEN }}" -X POST https://api.github.com/repos/${{ github.repository }}/labels -d "{\"name\":\"${{steps.get-gitmoji.outputs.gitmoji}}_gitmoji\",\"color\":\"$random_hex_color\"}" fi