From 5071a207bb8f188c59024a55b77b541547a9a519 Mon Sep 17 00:00:00 2001 From: "Daniel D. Beck" Date: Thu, 24 Oct 2024 13:10:48 +0200 Subject: [PATCH] Fix checklist for BCD upgrades workflow A follow up to https://github.com/web-platform-dx/web-features/pull/2043 --- .github/workflows/bcd_upgrade_checklist.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/bcd_upgrade_checklist.yml b/.github/workflows/bcd_upgrade_checklist.yml index 3a9c0070c83..a4faf1c10e7 100644 --- a/.github/workflows/bcd_upgrade_checklist.yml +++ b/.github/workflows/bcd_upgrade_checklist.yml @@ -3,19 +3,21 @@ name: BCD upgrade on: pull_request: types: [opened] +permissions: + pull-requests: write jobs: post-comment: name: "Post checklist" runs-on: ubuntu-latest if: github.event.pull_request.user.login == 'dependabot[bot]' steps: - - id: dependency - run: | - if ! git diff --exit-code -G '@mdn/browser-compat-data' "${{ github.event.pull_request.base.sha }}" "${{ github.sha }}"; then - echo "is_bcd=true" >> $GITHUB_OUTPUT - fi - exit 0 - - if: ${{ steps.dependency.outputs.is_bcd == 'true' }} + - name: Fetch Dependabot metadata + id: dependabot-metadata + continue-on-error: true + uses: dependabot/fetch-metadata@dbb049abf0d677abbd7f7eee0375145b417fdd34 #v2.2.0 + + - if: ${{ contains(steps.dependabot-metadata.outputs.dependency-names, "@mdn/browser-compat-data" }} + continue-on-error: true uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 #v4.0.0 with: issue-number: ${{ github.event.number }}