File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -105,22 +105,23 @@ jobs:
105105 runs-on : ubuntu-latest
106106 steps :
107107 - name : Check if fork
108+ if : github.event_name == 'pull_request'
108109 run : |
109110 if [[ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" && "${{ matrix.type }}" == "enterprise" ]]; then
110111 echo "IS_FORK=true" >> $GITHUB_ENV
111112 else
112113 echo "IS_FORK=false" >> $GITHUB_ENV
113114 fi
114115 - name : Comment PR in forks
115- if : env.IS_FORK == 'true'
116+ if : github.event_name == 'pull_request' && env.IS_FORK == 'true'
116117 uses : peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
117118 with :
118119 token : ${{ secrets.GITHUB_TOKEN }}
119120 issue-number : ${{ github.event.pull_request.number }}
120121 body : |
121122 ⚠️ Enterprise tests skipped for fork PRs.
122123 - name : Skip job if fork
123- if : env.IS_FORK == 'true'
124+ if : github.event_name == 'pull_request' && env.IS_FORK == 'true'
124125 run : |
125126 echo "Skipping job because PR is from a fork"
126127 exit 0
You can’t perform that action at this time.
0 commit comments