]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
action: make it work when used as a submodule
authorDavide Cavalca <dcavalca@fb.com>
Sat, 4 Oct 2025 16:26:26 +0000 (18:26 +0200)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Sun, 5 Oct 2025 10:05:40 +0000 (12:05 +0200)
action.yaml

index 652b2d6a223f42c1abd6b3c267c7cdc95f816731..2227941b6f9346859805c82ce0b275bb57d41c99 100644 (file)
@@ -80,7 +80,7 @@ runs:
     - name: Ensure git history is available
       shell: bash
       run: |
-        if [[ ! -d "${{ github.action_path }}/.git" ]]; then
+        if [[ ! -e "${{ github.action_path }}/.git" ]]; then
             rm -rf "${{ github.action_path }}"
             git clone "https://github.com/${{ inputs.action_repository }}" "${{ github.action_path }}"
             git -C "${{ github.action_path }}" checkout "${{ inputs.action_ref }}"