We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 759f07d commit 2f9e378Copy full SHA for 2f9e378
.github/workflows/ci.yml
@@ -141,7 +141,8 @@ jobs:
141
permissions:
142
id-token: write # needed for provenance data generation
143
needs: [primary]
144
- if: github.ref == 'refs/heads/main'
+ # prevents this action from running on forks
145
+ if: (github.repository == 'angular-eslint/angular-eslint') && (github.ref == 'refs/heads/main')
146
steps:
147
- uses: actions/checkout@v4
148
with:
.github/workflows/publish.yml
@@ -14,6 +14,8 @@ on:
14
15
jobs:
16
publish:
17
18
+ if: github.repository == 'angular-eslint/angular-eslint'
19
name: Publish to npm
20
runs-on: ubuntu-latest
21
0 commit comments