Skip to content

Commit 493f154

Browse files
committed
do not run generate workflow on forked repo
1 parent bbe63e9 commit 493f154

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/generate.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515

1616
jobs:
1717
go-generate:
18+
if: ${{ github.repository == 'rhysd/actionlint' }}
1819
runs-on: ubuntu-latest
1920
permissions:
2021
contents: write
@@ -47,4 +48,4 @@ jobs:
4748
This PR was created by [this workflow run](https://github.com/rhysd/actionlint/actions/runs/${{ github.run_id }}) automatically.
4849
List of workflow runs is [here](https://github.com/rhysd/actionlint/actions/workflows/generate.yaml).
4950
assignees: rhysd
50-
if: ${{ steps.diff.outputs.pr == 'true' && github.repository == 'rhysd/actionlint' }}
51+
if: ${{ steps.diff.outputs.pr == 'true' }}

0 commit comments

Comments
 (0)