From ae7a93201c6e0f1c8f15a96f725e8f54c85b1719 Mon Sep 17 00:00:00 2001 From: Jean Aurambault Date: Mon, 24 Oct 2022 21:43:57 -0700 Subject: [PATCH] show base commit and current commit of a PR --- .github/workflows/maven-test.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven-test.yml b/.github/workflows/maven-test.yml index f23fcc463e..5a6d215518 100644 --- a/.github/workflows/maven-test.yml +++ b/.github/workflows/maven-test.yml @@ -9,9 +9,12 @@ jobs: - uses: actions/checkout@v2 - name: test env variable env: - EVENT_CONTEXT: ${{ toJSON(github.event) }} + MOJITO_CURRENT_COMMIT: ${{ github.event.pull_request.head.sha }} + MOJITO_BASE_COMMIT: ${{ github.event.pull_request.base.sha }} run: | - echo $EVENT_CONTEXT + echo "Current commit: ${MOJITO_CURRENT_COMMIT} and Base commit: ${MOJITO_BASE_COMMIT} " + +# echo $EVENT_CONTEXT # - name: Set up JDK 1.8 # uses: actions/setup-java@v3 # with: