Skip to content

Commit 5db06bb

Browse files
committed
[INFRA] Do not try to update cron-issue on forks
1 parent e2f7656 commit 5db06bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/cron_api.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,22 +69,22 @@ jobs:
6969
fi
7070
7171
- name: Reopen issue
72-
if: failure()
72+
if: failure() && github.repository_owner == 'seqan'
7373
run: gh issue reopen ${{ env.ISSUE }}
7474
env:
7575
GH_TOKEN: ${{ secrets.SEQAN_ACTIONS_PAT }}
7676
GH_REPO: ${{ github.repository }}
7777

7878
- name: Find Comment
79-
if: always()
79+
if: always() && github.repository_owner == 'seqan'
8080
uses: peter-evans/find-comment@v3
8181
id: find_comment
8282
with:
8383
issue-number: ${{ env.ISSUE }}
8484
body-includes: ${{ matrix.build }} on ${{ matrix.compiler }}
8585

8686
- name: Update comment
87-
if: always()
87+
if: always() && github.repository_owner == 'seqan'
8888
uses: peter-evans/create-or-update-comment@v4
8989
with:
9090
comment-id: ${{ steps.find_comment.outputs.comment-id }}

0 commit comments

Comments
 (0)