diff --git a/.github/workflows/add-artifact-to-pr.yml b/.github/workflows/add-artifact-to-pr.yml index 5572dd21..13b4f338 100644 --- a/.github/workflows/add-artifact-to-pr.yml +++ b/.github/workflows/add-artifact-to-pr.yml @@ -8,7 +8,7 @@ jobs: artifacts-url-comments: name: add artifact links to pull request and related issues job runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} + if: ${{ github.event.workflow_run.conclusion == 'success' && github.event_name == 'pull_request' }} steps: - name: add artifact links to PR and issues uses: tonyhallett/artifacts-url-comments@v1.1.0