Skip to content

Commit

Permalink
Ensure Dependabot PR workflow retriggers on label change (opensearch-…
Browse files Browse the repository at this point in the history
…project#360)

Solves a race condition when PR is created but not yet labeled.

Signed-off-by: Thomas Farr <[email protected]>

Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia authored Jan 17, 2023
1 parent b718526 commit 72c0f1a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/dependabot_pr.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: Dependabot PR actions
on: pull_request
on:
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
- unlabeled

jobs:
dependabot:
Expand All @@ -18,12 +25,12 @@ jobs:
installation_id: 22958780

- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
token: ${{ steps.github_app_token.outputs.token }}

- name: Update the changelog
uses: dangoslen/dependabot-changelog-helper@v1
uses: dangoslen/dependabot-changelog-helper@v2
with:
version: 'Unreleased'

Expand Down

0 comments on commit 72c0f1a

Please sign in to comment.