This is an automated email from the ASF dual-hosted git repository.
ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-pack.git
The following commit(s) were added to refs/heads/master by this push:
new 8a1b92e SCB-2231 Github Actions only work on apache/servicecomb-pack
8a1b92e is described below
commit 8a1b92e97b57b8f7510bec8c4cc4878f640fabb6
Author: Lei Zhang <[email protected]>
AuthorDate: Mon Mar 22 15:20:15 2021 +0800
SCB-2231 Github Actions only work on apache/servicecomb-pack
---
.github/workflows/asf-snapshots-deploy.yml | 3 ++-
.github/workflows/master-pr-build.yaml | 1 +
.github/workflows/master-push-build.yaml | 1 +
3 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/asf-snapshots-deploy.yml
b/.github/workflows/asf-snapshots-deploy.yml
index 87c9b5d..97da134 100644
--- a/.github/workflows/asf-snapshots-deploy.yml
+++ b/.github/workflows/asf-snapshots-deploy.yml
@@ -30,6 +30,7 @@ jobs:
build:
timeout-minutes: 180
runs-on: ubuntu-20.04
+ if: github.repository == 'apache/servicecomb-pack'
strategy:
matrix:
java: [ '1.8' ]
@@ -74,7 +75,7 @@ jobs:
matrix:
java: [ '1.8' ]
needs: build
- if: github.ref == 'refs/heads/master'
+ if: github.repository == 'apache/servicecomb-pack' && github.ref ==
'refs/heads/master'
env:
NEXUS_DEPLOY_USERNAME: ${{ secrets.NEXUS_USER }}
NEXUS_DEPLOY_PASSWORD: ${{ secrets.NEXUS_PW }}
diff --git a/.github/workflows/master-pr-build.yaml
b/.github/workflows/master-pr-build.yaml
index 0787660..ce9c3da 100644
--- a/.github/workflows/master-pr-build.yaml
+++ b/.github/workflows/master-pr-build.yaml
@@ -29,6 +29,7 @@ jobs:
mvn:
timeout-minutes: 180
runs-on: ubuntu-20.04
+ if: github.repository == 'apache/servicecomb-pack'
strategy:
matrix:
java: [ '1.8' ]
diff --git a/.github/workflows/master-push-build.yaml
b/.github/workflows/master-push-build.yaml
index 1f3d57d..5dbda68 100644
--- a/.github/workflows/master-push-build.yaml
+++ b/.github/workflows/master-push-build.yaml
@@ -30,6 +30,7 @@ jobs:
mvn:
timeout-minutes: 180
runs-on: ubuntu-20.04
+ if: github.repository == 'apache/servicecomb-pack'
strategy:
matrix:
java: [ '1.8' ]