Skip to content

Commit

Permalink
Use the correct event trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry Gordon committed Feb 23, 2022
1 parent 6cfee78 commit 5b6828e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/dependabot-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Compile dependabot updates

on:
workflow_dispatch:
pull_request_target:
pull_request:

permissions:
pull-requests: write
Expand All @@ -26,6 +26,8 @@ jobs:
if: ${{ needs.fetch-dependabot-metadata.outputs.dependency-type == 'direct:production' }}
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head }}

- name: Read .nvmrc
id: nvm
Expand All @@ -48,4 +50,4 @@ jobs:
git config user.name github-actions
git config user.email github-actions@github.com
git commit -m "[dependabot skip] Update dist/ with build changes" || exit 0
git push
git push ${{ github.event.pull_request.head }} origin:${{ github.event.pull_request.head }}

0 comments on commit 5b6828e

Please sign in to comment.