Skip to content

Commit 8451155

Browse files
authored
chore: use logical pull request commit hash in esignet-mock
1 parent 82ffb45 commit 8451155

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/docker-publish-esignet-mock.yml

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
steps:
2727
- name: Checkout repository
2828
uses: actions/checkout@v4
29+
with:
30+
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#pull_request
31+
# > Note that GITHUB_SHA for this event is the last merge commit of the pull request merge branch.
32+
# > If you want to get the commit ID for the last commit to the head branch of the pull request, use _github.event.pull_request.head.sha_ instead.
33+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
2934

3035
- name: Log in to the Container registry
3136
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1

0 commit comments

Comments
 (0)