Skip to content

Commit 3be1fd5

Browse files
committed
Use checkout action in shared build in "." context
1 parent cc71921 commit 3be1fd5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/shared-build-and-publish-docker-image.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ jobs:
106106
- name: Login to ACR via OIDC
107107
run: az acr login --name ${{ inputs.acr_name }}
108108

109+
- name: Checkout
110+
# Checkout is needed when context is local "."
111+
# Otherwise the repository code will not be fetched for the build
112+
if: ${{ inputs.context == '.' }}
113+
uses: actions/checkout@v5
114+
109115
- name: Download artifacts
110116
if: ${{ inputs.artifact-id }}
111117
uses: actions/download-artifact@v5

0 commit comments

Comments
 (0)