From 3be1fd5135563256341c0bfc5c22a57411a9be78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Teemu=20M=C3=A4kinen?= Date: Thu, 30 Oct 2025 08:55:25 +0200 Subject: [PATCH] Use checkout action in shared build in "." context --- .github/workflows/shared-build-and-publish-docker-image.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/shared-build-and-publish-docker-image.yml b/.github/workflows/shared-build-and-publish-docker-image.yml index 3c7b976..a100945 100644 --- a/.github/workflows/shared-build-and-publish-docker-image.yml +++ b/.github/workflows/shared-build-and-publish-docker-image.yml @@ -106,6 +106,12 @@ jobs: - name: Login to ACR via OIDC run: az acr login --name ${{ inputs.acr_name }} + - name: Checkout + # Checkout is needed when context is local "." + # Otherwise the repository code will not be fetched for the build + if: ${{ inputs.context == '.' }} + uses: actions/checkout@v5 + - name: Download artifacts if: ${{ inputs.artifact-id }} uses: actions/download-artifact@v5