From 3e49e78038493848a8e1a215d538710990f01845 Mon Sep 17 00:00:00 2001 From: Yi Hu Date: Thu, 14 Sep 2023 17:26:35 -0400 Subject: [PATCH] Set env variable --- .github/actions/setup-action/action.yml | 2 ++ .github/workflows/beam_PreCommit_Java_HBase_IO_Direct.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-action/action.yml b/.github/actions/setup-action/action.yml index cb24a065f98c..21548f55fa95 100644 --- a/.github/actions/setup-action/action.yml +++ b/.github/actions/setup-action/action.yml @@ -56,6 +56,8 @@ runs: git fetch --depth=1 origin +refs/pull/${{ github.event.issue.number }}/merge:refs/remotes/pull/${{ github.event.issue.number }}/merge || \ git fetch --depth=1 origin +refs/pull/${{ github.event.issue.number }}/head:refs/remotes/pull/${{ github.event.issue.number }}/head git checkout pull/${{ github.event.issue.number }}/merge || git checkout pull/${{ github.event.issue.number }}/head + # Add pull request head sha to env variable, used for test result publisher + echo "INPUT_COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV - name: Rerun if comment phrase if: ${{ github.event.comment.body == inputs.comment_phrase }} uses: ./.github/actions/rerun-job-action diff --git a/.github/workflows/beam_PreCommit_Java_HBase_IO_Direct.yml b/.github/workflows/beam_PreCommit_Java_HBase_IO_Direct.yml index 0664f969996e..84814e634e5d 100644 --- a/.github/workflows/beam_PreCommit_Java_HBase_IO_Direct.yml +++ b/.github/workflows/beam_PreCommit_Java_HBase_IO_Direct.yml @@ -74,7 +74,7 @@ jobs: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event.comment.body == 'Run Java_HBase_IO_Direct PreCommit' - runs-on: [self-hosted, ubuntu-20.04, main] + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 - name: Setup repository