Skip to content

Commit aa7495f

Browse files
committed
Avoid forks to perform releases when they receive tags
Before this, forks getting the tags pushed were performing own releases of moodle-plugin-ci. Let's run that job only for the root "moodlehq" one.
1 parent c024cb8 commit aa7495f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66

77
jobs:
88
release:
9+
# Avoid forks to perform this job.
10+
if: github.repository_owner == 'moodlehq'
911
name: Create Release
1012
runs-on: ubuntu-18.04
1113

0 commit comments

Comments
 (0)