Skip to content

Commit

Permalink
Add workflow types to trigger on label or push events
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianZaccaria authored and openshift-merge-bot[bot] committed Oct 23, 2024
1 parent 0aed804 commit 1f9e9bf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/dependabot-labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,22 @@ name: Dependabot Labeler

on:
pull_request:
types: [ labeled, synchronize, opened, reopened ]

jobs:
add-approve-lgtm-label:
if: github.actor == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependabot')
if: ${{ github.actor == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependabot') }}
runs-on: ubuntu-latest

# Permission required to edit a PR
permissions:
pull-requests: write
issues: write

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Add approve and lgtm labels to Dependabot PR
run: |
gh pr edit ${{ github.event.pull_request.number }} --add-label "lgtm" --add-label "approved"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/e2e_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: e2e

on:
pull_request:
types: [ labeled, synchronize, opened, reopened ]
branches:
- main
- 'release-*'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/guided_notebook_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Guided notebooks tests

on:
pull_request:
types: [ labeled, synchronize, opened, reopened ]

concurrency:
group: ${{ github.head_ref }}-${{ github.workflow }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ui_notebooks_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: UI notebooks tests

on:
pull_request:
types: [ labeled, synchronize, opened, reopened ]

concurrency:
group: ${{ github.head_ref }}-${{ github.workflow }}
Expand Down

0 comments on commit 1f9e9bf

Please sign in to comment.