Skip to content

Commit

Permalink
Merge pull request #3819 from opsmill/fac-fix-preview-docker-build
Browse files Browse the repository at this point in the history
fix(ci): use pr head commit instead of last merge commit
  • Loading branch information
fatih-acar authored Jul 11, 2024
2 parents 0132c15 + 7dae9fe commit 018dced
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 018dced

Please sign in to comment.