Skip to content

Commit 1f8e7e4

Browse files
authored
add checks for pull requests (#434)
1 parent 2bfc619 commit 1f8e7e4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/analyze.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
- name: Copy files to results bucket
5858
run: aws s3 cp ./results s3://cellpack-results/${{ github.ref_name }}/ --recursive --acl public-read
5959
- name: Update comment for dependabot
60-
if: ${{ github.actor == 'dependabot[bot]' }}
60+
if: ${{ github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' }}
6161
env:
6262
GH_TOKEN: ${{ secrets.DEPENDABOT_TOKEN }}
6363
run: |
@@ -70,7 +70,7 @@ jobs:
7070
echo -e "$COMMENT_BODY" | gh pr comment ${{ github.event.pull_request.number }} --body-file -
7171
cat ./results/analysis_report.md
7272
- name: Update comment for PR
73-
if: ${{ github.actor != 'dependabot[bot]' }}
73+
if: ${{ github.event_name == 'pull_request' && github.actor != 'dependabot[bot]' }}
7474
env:
7575
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7676
run: |

0 commit comments

Comments
 (0)