Skip to content

Commit f1f3523

Browse files
committed
Exclude running Deploy Phar job in forks
Signed-off-by: Riddhesh Sanghvi <[email protected]>
1 parent a36ff75 commit f1f3523

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/test_and_build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ jobs:
172172
173173
deploy: #-----------------------------------------------------------------------
174174
name: Deploy Phar
175-
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master'
175+
if: |
176+
github.repository_owner == 'EasyEngine' &&
177+
(github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master')
176178
runs-on: ubuntu-latest
177179
needs: [build, test]
178180

@@ -209,6 +211,7 @@ jobs:
209211
run: |
210212
md5sum phar/$FILENAME | cut -d ' ' -f 1 > phar/$FILENAME.md5
211213
sha512sum phar/$FILENAME | cut -d ' ' -f 1 > phar/$FILENAME.sha512
214+
212215
- name: Commit files
213216
run: |
214217
git config --local user.email "[email protected]"

0 commit comments

Comments
 (0)