You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@helix.apache.org by ji...@apache.org on 2021/01/07 01:42:37 UTC
[helix] branch master updated: Fix the PR CI workflow after Apache
infra blocks all the unknown actions. (#1603)
This is an automated email from the ASF dual-hosted git repository.
jiajunwang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/helix.git
The following commit(s) were added to refs/heads/master by this push:
new ff7469d Fix the PR CI workflow after Apache infra blocks all the unknown actions. (#1603)
ff7469d is described below
commit ff7469da711a64ed7c3d265e9ac769b848c8af89
Author: Jiajun Wang <jj...@linkedin.com>
AuthorDate: Wed Jan 6 17:42:30 2021 -0800
Fix the PR CI workflow after Apache infra blocks all the unknown actions. (#1603)
Fix the PR CI workflow after Apache infra blocks all the unknown actions.
---
.github/workflows/Helix-PR-CI.yml | 20 +++++++++-----------
1 file changed, 9 insertions(+), 11 deletions(-)
diff --git a/.github/workflows/Helix-PR-CI.yml b/.github/workflows/Helix-PR-CI.yml
index 4aef5f3..a8b959b 100644
--- a/.github/workflows/Helix-PR-CI.yml
+++ b/.github/workflows/Helix-PR-CI.yml
@@ -17,30 +17,28 @@ jobs:
with:
java-version: 1.8
- name: Get Changed Files
- uses: lots0logs/gh-action-get-changed-files@2.1.4
- with:
- token: ${{ github.token }}
- id: file-diff
+ run: git fetch origin master > /dev/null 2>&1; git diff --name-only origin/master HEAD
+ id: find-diff
- name: Build with Maven
run: mvn clean install -Dmaven.test.skip.exec=true
- name: Test metrics-common
run: cd metrics-common; mvn -q test
- if: ${{ contains(steps.file-diff.outputs.all, 'metrics-common') && (success() || failure()) }}
+ if: ${{ contains(steps.find-diff.outputs, 'metrics-common') && (success() || failure()) }}
- name: Test metadata-store-directory-common
run: cd metadata-store-directory-common; mvn -q test
- if: ${{ contains(steps.file-diff.outputs.all, 'metadata-store-directory-common') && (success() || failure()) }}
+ if: ${{ contains(steps.find-diff.outputs, 'metadata-store-directory-common') && (success() || failure()) }}
- name: Test zookeeper-api
run: cd zookeeper-api; mvn -q test
- if: ${{ contains(steps.file-diff.outputs.all, 'zookeeper-api') && (success() || failure()) }}
+ if: ${{ contains(steps.find-diff.outputs, 'zookeeper-api') && (success() || failure()) }}
- name: Test helix-common
run: cd helix-common; mvn -q test
- if: ${{ contains(steps.file-diff.outputs.all, 'helix-common') && (success() || failure()) }}
+ if: ${{ contains(steps.find-diff.outputs, 'helix-common') && (success() || failure()) }}
- name: Test helix-lock
run: cd helix-lock; mvn -q test
- if: ${{ contains(steps.file-diff.outputs.all, 'helix-lock') && (success() || failure()) }}
+ if: ${{ contains(steps.find-diff.outputs, 'helix-lock') && (success() || failure()) }}
- name: Test helix-rest
run: cd helix-rest; mvn -q test
- if: ${{ contains(steps.file-diff.outputs.all, 'helix-rest') && (success() || failure()) }}
+ if: ${{ contains(steps.find-diff.outputs, 'helix-rest') && (success() || failure()) }}
- name: Test helix-core
run: cd helix-core; mvn -q test
- if: ${{ contains(steps.file-diff.outputs.all, 'helix-core') && (success() || failure()) }}
+ if: ${{ contains(steps.find-diff.outputs, 'helix-core') && (success() || failure()) }}