Skip to content

Commit

Permalink
fix: remove manually checking for dependabot author
Browse files Browse the repository at this point in the history
  • Loading branch information
EshaanAgg committed Dec 24, 2023
1 parent 2c85fcf commit 5861438
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/ci-label-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,8 @@ jobs:
check-label:
runs-on: ubuntu-latest
steps:
- name: Check PR author
id: check_author
run: |
is_dependabot=$(echo ${{ github.event.pull_request.user.login }} | grep -o 'dependabot')
echo "is_dependabot=$is_dependabot" >> $GITHUB_OUTPUT
- name: Check PR label
if: steps.check_author.outputs.is_dependabot != 'dependabot'
if: github.event.pull_request.user.login != 'dependabot'
run: |
LABEL_NAME="changelog:"
if [[ $(curl -s "https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}" | jq -r '.labels[].name' | grep -c "^$LABEL_NAME") -eq 0 ]]; then
Expand Down

0 comments on commit 5861438

Please sign in to comment.