From c73e46381e86464d60a1ab69c346ce36612dd955 Mon Sep 17 00:00:00 2001 From: Thomas Farr Date: Wed, 18 Jan 2023 05:47:03 +1300 Subject: [PATCH] Ensure Dependabot PR workflow retriggers on label change (#269) Solves a race condition when PR is created but not yet labeled. Signed-off-by: Thomas Farr Signed-off-by: Thomas Farr --- .github/workflows/dependabot_pr.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dependabot_pr.yml b/.github/workflows/dependabot_pr.yml index f13889c1..5abbd37e 100644 --- a/.github/workflows/dependabot_pr.yml +++ b/.github/workflows/dependabot_pr.yml @@ -1,5 +1,12 @@ name: Dependabot PR actions -on: pull_request +on: + pull_request: + types: + - opened + - reopened + - synchronize + - labeled + - unlabeled jobs: dependabot: @@ -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'