Skip to content

Commit

Permalink
Update PR Label checker job to Ignore dependabot PRs
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Davies <[email protected]>
  • Loading branch information
simongdavies committed Jan 30, 2025
1 parent 19d54c9 commit 54f5380
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/PRLabelChecker.yml
Original file line number Diff line number Diff line change
@@ -14,6 +14,11 @@ jobs:
- uses: actions/checkout@v4
- name: Check for specific labels
run: |
# ignore dependabot PRs
if [[ ${{ github.actor }} == "dependabot[bot]" ]]; then
echo "Ignoring dependabot PRs."
exit 0
fi
# Fetch repository labels from the GitHub API
REPO_LABELS=$(gh api repos/${{ github.repository }}/labels --jq '.[].name')

0 comments on commit 54f5380

Please sign in to comment.