Skip to content

Commit

Permalink
Update workflow to execute only with dependabot based PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
Odilhao committed May 6, 2024
1 parent 32f37d0 commit 459459f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/requirement-check.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Check Requirements Update

on:
label:
types:
- dependabot
pull_request:
types: [ labeled ]
paths:
- 'automation/requirements.txt'

env:
GIT_AUTHOR_NAME: Foreman Packaging Automation
Expand All @@ -15,7 +16,7 @@ jobs:
rpm_list:
name: 'Check Package to Update'
runs-on: ubuntu-latest
if: github.repository_owner == 'theforeman'
if: contains(github.event.pull_request.labels.*.name, 'dependabot')
steps:
- name: Checkout Repository
uses: actions/checkout@v4
Expand Down

0 comments on commit 459459f

Please sign in to comment.