Skip to content

Commit

Permalink
fix(action-pr): fixing release bot stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
electrosenpai committed Oct 29, 2024
1 parent fb18479 commit f633009
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ jobs:
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- name: Installer jq
run: sudo apt-get install jq

- name: Check 'release' Label
id: check_release_label
run: |
labels=${{ toJSON(github.event.pull_request.labels) }}
labels='${{ toJSON(github.event.pull_request.labels) }}'
echo "Labels de la PR : $labels"
if [[ "$labels" == *'"name":"release"'* ]]; then
if echo "$labels" | jq -e '.[] | select(.name=="release")' > /dev/null; then
echo "has_release_label=true" >> $GITHUB_ENV
else
echo "has_release_label=false" >> $GITHUB_ENV
Expand Down

0 comments on commit f633009

Please sign in to comment.