Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
georgepstaylor committed May 4, 2024
1 parent ef888a1 commit 42cdbaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 42cdbaf

Please sign in to comment.