Skip to content

Commit

Permalink
Fix checklist for BCD upgrades workflow (#2073)
Browse files Browse the repository at this point in the history
A follow up to #2043
  • Loading branch information
ddbeck authored Oct 24, 2024
1 parent 4c97de8 commit 53f925b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/bcd_upgrade_checklist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 53f925b

Please sign in to comment.