From df80bb4044efd09cbdf4592ae8a305ba7f572559 Mon Sep 17 00:00:00 2001 From: KaKa Date: Mon, 21 Nov 2022 00:27:47 +0800 Subject: [PATCH] fix: dependabot/fetch-metadata throw on push event (#312) --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 0d56adf9..b81d4000 100644 --- a/action.yml +++ b/action.yml @@ -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]' }}