Skip to content

Commit

Permalink
ignore dependabot in issue-label-automation/automate-labels workflow (#…
Browse files Browse the repository at this point in the history
…2763)

<!--
Please read and fill out this form before submitting your PR.

Please make sure you have reviewed our contributors guide before
submitting your
first PR.
-->

## Overview

- Ignores triggering the issue-label-automation workflow when a workflow
is triggered by dependabot[bot].
- why?: It always fails as the "check external contributor" action
doesn't find a legitimate user
- this seemed simplest way vs attempting to modify the imported action
to allow configuration to ignore dependabot or similar
- also introduces some minor/nit formatting with a whitespace change

<!-- 
Please provide an explanation of the PR, including the appropriate
context,
background, goal, and rationale. If there is an issue with this
information,
please provide a tl;dr and link the issue. 
-->

## Checklist

<!-- 
Please complete the checklist to ensure that the PR is ready to be
reviewed.

IMPORTANT:
PRs should be left in Draft until the below checklist is completed.
-->

- [n/a] New and updated code has appropriate documentation
- [n/a] New and updated code has new and/or updated testing
- [ ] Required CI checks are passing
- [n/a] Visual proof for any user facing features like CLI or
documentation updates
- [n/a] Linked issues closed with keywords
  • Loading branch information
ramin committed Sep 28, 2023
1 parent 49e6c24 commit 849cb67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/issue-label-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@ on:
types: [opened]
issues:
types: [opened]

jobs:
automate-labels:
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
permissions:
issues: write
pull-requests: write

steps:
- name: Check for External Contributor
uses: tspascoal/get-user-teams-membership@v2
Expand Down

0 comments on commit 849cb67

Please sign in to comment.