Skip to content

Commit

Permalink
🚑 fix unicode emoji (#13)
Browse files Browse the repository at this point in the history
* 🚑 fix unicode grep

* 🚑 fix using jq
  • Loading branch information
georgepstaylor authored May 24, 2024
1 parent 2839d56 commit 2f22b34
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 @@ -39,7 +39,7 @@ runs:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
run: |
echo ${{steps.get-gitmoji.outputs.gitmoji}}
gh label list | grep -Pq ${{steps.get-gitmoji.outputs.gitmoji}}_gitmoji || gh label create ${{steps.get-gitmoji.outputs.gitmoji}}_gitmoji -c "$(openssl rand -hex 3)" -d "PRs with ${{steps.outputs.get-gitmoji.outputs.gitmoji}}_gitmoji"
gh label list --json name | jq -er '.[] | select(.name | test("${{steps.get-gitmoji.outputs.gitmoji}}_gitmoji")) | .name' || gh label create ${{steps.get-gitmoji.outputs.gitmoji}}_gitmoji -c "$(openssl rand -hex 3)" -d "PRs with ${{steps.outputs.get-gitmoji.outputs.gitmoji}}_gitmoji" --force
- name: remove labels ending in _gitmoji from PR
id: remove-label
Expand Down

0 comments on commit 2f22b34

Please sign in to comment.