Skip to content

Commit

Permalink
fix(ci): use pr head commit instead of last merge commit
Browse files Browse the repository at this point in the history
Signed-off-by: Fatih Acar <[email protected]>
  • Loading branch information
fatih-acar committed Jul 11, 2024
1 parent 0132c15 commit 7dae9fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-dev-docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# yamllint disable rule:truthy
# yamllint disable rule:truthy rule:line-length
name: Publish development docker image

on:
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
short_ref: ${{ steps.short_ref.outputs.short_ref }}
steps:
- name: Set GIT ref
run: echo "ref=${{ inputs.commit == '' && github.sha || inputs.commit }} " >> $GITHUB_OUTPUT
run: echo "ref=${{ inputs.commit == '' && (github.event.pull_request.head.sha == '' && github.sha || github.event.pull_request.head.sha) || inputs.commit }} " >> $GITHUB_OUTPUT
id: ref
- name: Set GIT short ref
run: echo "short_ref=$(echo ${{ steps.ref.outputs.ref }} | cut -c1-7)" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 7dae9fe

Please sign in to comment.