Skip to content

Commit

Permalink
show base commit and current commit of a PR
Browse files Browse the repository at this point in the history
  • Loading branch information
aurambaj committed Oct 25, 2022
1 parent a1ef6d0 commit ae7a932
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/maven-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ae7a932

Please sign in to comment.