From fe49d758c62940b91478e4df1d85cf92c7e20306 Mon Sep 17 00:00:00 2001 From: Niklaus Schen <8458369+Water-Melon@users.noreply.github.com> Date: Fri, 7 Jun 2024 11:28:42 +0800 Subject: [PATCH] chore(ci): use github.sha in push event to get latest commit SHA from default branch (#13170) KAG-4374 --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ccfc66b436b8..c73fb2d3eafb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -610,7 +610,7 @@ jobs: images: ${{ needs.metadata.outputs.docker-repository }} sep-tags: " " tags: | - type=raw,value=latest,enable=${{ matrix.label == 'ubuntu' && github.ref_name == github.event.inputs.default_branch && env.latest_sha == github.event.pull_request.head.sha }} + type=raw,value=latest,enable=${{ matrix.label == 'ubuntu' && github.ref_name == github.event.inputs.default_branch && env.latest_sha == needs.metadata.outputs.commit-sha }} type=match,enable=${{ github.event_name == 'workflow_dispatch' }},pattern=\d.\d,value=${{ github.event.inputs.version }} type=match,enable=${{ github.event_name == 'workflow_dispatch' && matrix.label == 'ubuntu' }},pattern=\d.\d,value=${{ github.event.inputs.version }},suffix= type=raw,enable=${{ github.event_name == 'workflow_dispatch' }},${{ github.event.inputs.version }}