You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by el...@apache.org on 2020/07/27 15:28:17 UTC
[hadoop-ozone] branch master updated: HDDS-4017. Acceptance check
may run against wrong commit (#1249)
This is an automated email from the ASF dual-hosted git repository.
elek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hadoop-ozone.git
The following commit(s) were added to refs/heads/master by this push:
new fd47f91 HDDS-4017. Acceptance check may run against wrong commit (#1249)
fd47f91 is described below
commit fd47f915c65512de6618811e6c247871066a8351
Author: Doroszlai, Attila <64...@users.noreply.github.com>
AuthorDate: Mon Jul 27 17:28:02 2020 +0200
HDDS-4017. Acceptance check may run against wrong commit (#1249)
---
.github/workflows/post-commit.yml | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/post-commit.yml b/.github/workflows/post-commit.yml
index e472aea..3e617bc 100644
--- a/.github/workflows/post-commit.yml
+++ b/.github/workflows/post-commit.yml
@@ -146,9 +146,13 @@ jobs:
- name: checkout to /mnt/ozone
run: |
sudo chmod 777 /mnt
- git clone https://github.com/${GITHUB_REPOSITORY}.git /mnt/ozone
+ git clone 'https://github.com/${{ github.repository }}.git' /mnt/ozone
cd /mnt/ozone
- git fetch origin "${GITHUB_REF}"
+ if [[ '${{ github.event_name }}' == 'pull_request' ]]; then
+ git fetch --verbose origin '${{ github.ref }}'
+ else
+ git fetch --verbose origin '${{ github.sha }}'
+ fi
git checkout FETCH_HEAD
git reset --hard
- name: run a full build
---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-commits-help@hadoop.apache.org