Skip to content

Commit 02d28c5

Browse files
totaloRongtongJin
authored andcommitted
Restrict the list version workflow to be executed only in the main repository (#9168)
* build: Restrict the Snapshot Daily Release Automation action to be triggered only in the official repository * Restrict the list version workflow to be executed only in the main repository * Restrict the list version workflow to be executed only in the main repository
1 parent 4f2e077 commit 02d28c5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/snapshot-automation.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ jobs:
117117
path: rocketmq-docker/image-build-ci/versionlist/*
118118

119119
list-version:
120-
if: always()
120+
if: >
121+
github.repository == 'apache/rocketmq' &&
122+
always()
121123
name: List version
122124
needs: [ docker-build ]
123125
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)