Skip to content

Commit f2a756a

Browse files
committed
publish sha
1 parent ebde0d5 commit f2a756a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,25 +62,25 @@ jobs:
6262
uses: ./.github/workflows/publish-webapp.yml
6363
secrets: inherit
6464
with:
65-
image_tag: ${{ inputs.image_tag }}
65+
image_tag: ${{ inputs.image_tag != '' && inputs.image_tag || (github.ref_name == 'main' && github.sha || '') }}
6666

6767
publish-worker:
6868
needs: [typecheck]
6969
uses: ./.github/workflows/publish-worker.yml
7070
secrets: inherit
7171
with:
72-
image_tag: ${{ inputs.image_tag }}
72+
image_tag: ${{ inputs.image_tag != '' && inputs.image_tag || (github.ref_name == 'main' && github.sha || '') }}
7373

7474
publish-worker-v4:
7575
needs: [typecheck]
7676
uses: ./.github/workflows/publish-worker-v4.yml
7777
secrets: inherit
7878
with:
79-
image_tag: ${{ inputs.image_tag }}
79+
image_tag: ${{ inputs.image_tag != '' && inputs.image_tag || (github.ref_name == 'main' && github.sha || '') }}
8080

8181
publish-gcp-images:
8282
needs: [typecheck, units]
8383
uses: ./.github/workflows/publish-gcp-images.yml
8484
secrets: inherit
8585
with:
86-
image_tag: ${{ inputs.image_tag }}
86+
image_tag: ${{ inputs.image_tag != '' && inputs.image_tag || (github.ref_name == 'main' && github.sha || '') }}

0 commit comments

Comments
 (0)