From f25024d8f8b84c0e93871120d904496c5d255f05 Mon Sep 17 00:00:00 2001 From: Jean Aurambault Date: Mon, 24 Oct 2022 17:18:01 -0700 Subject: [PATCH 1/3] test --- .github/workflows/maven-test.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/maven-test.yml b/.github/workflows/maven-test.yml index c32acde355..27308cf52d 100644 --- a/.github/workflows/maven-test.yml +++ b/.github/workflows/maven-test.yml @@ -7,14 +7,16 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v3 - with: - distribution: 'zulu' - java-version: 8.0.292 - - name: Spotless check - run: mvn spotless:check - - name: Maven install, test skipped - run: mvn install -DskipTests - - name: Maven test - run: mvn test \ No newline at end of file + - name: test env variable + run: env +# - name: Set up JDK 1.8 +# uses: actions/setup-java@v3 +# with: +# distribution: 'zulu' +# java-version: 8.0.292 +# - name: Spotless check +# run: mvn spotless:check +# - name: Maven install, test skipped +# run: mvn install -DskipTests +# - name: Maven test +# run: mvn test \ No newline at end of file From a1ef6d039a8e10434f219213c69dcd5095bd3dc4 Mon Sep 17 00:00:00 2001 From: Jean Aurambault Date: Mon, 24 Oct 2022 21:27:18 -0700 Subject: [PATCH 2/3] commit 2 --- .github/workflows/maven-test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven-test.yml b/.github/workflows/maven-test.yml index 27308cf52d..f23fcc463e 100644 --- a/.github/workflows/maven-test.yml +++ b/.github/workflows/maven-test.yml @@ -8,7 +8,10 @@ jobs: steps: - uses: actions/checkout@v2 - name: test env variable - run: env + env: + EVENT_CONTEXT: ${{ toJSON(github.event) }} + run: | + echo $EVENT_CONTEXT # - name: Set up JDK 1.8 # uses: actions/setup-java@v3 # with: From ae7a93201c6e0f1c8f15a96f725e8f54c85b1719 Mon Sep 17 00:00:00 2001 From: Jean Aurambault Date: Mon, 24 Oct 2022 21:43:57 -0700 Subject: [PATCH 3/3] 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: