Skip to content

Commit

Permalink
fix: dependabot/fetch-metadata throw on push event (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
climba03003 committed Nov 20, 2022
1 parent 14d198b commit df80bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Expand Up @@ -39,7 +39,7 @@ runs:
- name: Fetch metadata
id: dependabot-metadata
uses: dependabot/fetch-metadata@v1
if: ${{ github.actor == 'dependabot[bot]' }}
if: ${{ github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' }}
- name: Merge/approve PR
uses: actions/github-script@v6
if: ${{ github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' }}
Expand Down

0 comments on commit df80bb4

Please sign in to comment.