Skip to content

Commit

Permalink
Restrict some actions to be triggered only in the official repository (
Browse files Browse the repository at this point in the history
…#7695)

* build: Restrict the Snapshot Daily Release Automation action to be triggered only in the official repository

* build: Restrict the E2E test for pull request action to be triggered only in the official repository

* build: Restrict the PUSH-CI action to be triggered only in the official repository

* build: update ci
  • Loading branch information
totalo authored Jun 13, 2024
1 parent 1a73e01 commit 107a811
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pr-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ env:

jobs:
docker:
runs-on: ubuntu-latest
if: >
github.repository == 'apache/rocketmq' &&
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
Expand Down Expand Up @@ -74,7 +75,9 @@ jobs:
path: rocketmq-docker/image-build-ci/versionlist/*

list-version:
if: always()
if: >
github.repository == 'apache/rocketmq' &&
always()
name: List version
needs: [docker]
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/push-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ env:

jobs:
dist-tar:
if: github.repository == 'apache/rocketmq'
name: Build dist tar
runs-on: ubuntu-latest
timeout-minutes: 30
Expand Down Expand Up @@ -79,7 +80,9 @@ jobs:


list-version:
if: always()
if: >
github.repository == 'apache/rocketmq' &&
always()
name: List version
needs: [docker]
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/snapshot-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ env:

jobs:
dist-tar:
if: github.repository == 'apache/rocketmq'
name: Build dist tar
runs-on: ubuntu-latest
timeout-minutes: 30
Expand Down

0 comments on commit 107a811

Please sign in to comment.