Skip to content

Commit b70548f

Browse files
authored
Avoid spurious action failures in forks (#4005)
Forks are not generally configured to take issues, making the create-issue step (spuriously) fail with "Issues are disabled for this repo". To avoid repeat notifications about those spurious failures, do not attempt the run the create-issue step outside the main repository. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.
1 parent 0e4cab9 commit b70548f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/cbmc-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
Upgrade CBMC to its latest release.
7676
7777
- name: Create Issue
78-
if: ${{ env.next_step == 'create_issue' }}
78+
if: ${{ env.next_step == 'create_issue' && github.repository_owner == 'model-checking' }}
7979
uses: dacbd/create-issue-action@main
8080
with:
8181
token: ${{ github.token }}

.github/workflows/toolchain-upgrade.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
})
6969
7070
- name: Create Issue
71-
if: ${{ env.next_step == 'create_issue' }}
71+
if: ${{ env.next_step == 'create_issue' && github.repository_owner == 'model-checking' }}
7272
uses: dacbd/create-issue-action@main
7373
with:
7474
token: ${{ github.token }}

0 commit comments

Comments
 (0)