]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
action: Unshallow repository
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 8 Apr 2025 11:54:04 +0000 (13:54 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 8 Apr 2025 12:12:33 +0000 (14:12 +0200)
We want the full history so that MinimumVersion= with a git sha
works properly.

action.yaml

index d650b4c0abe05b2a8a370c7ae5fca42acd452838..019a816979d2e736c220eda120be0856cfb18095 100644 (file)
@@ -73,6 +73,10 @@ runs:
         sudo aa-teardown || true
         sudo apt-get remove apparmor
 
+    - name: Unshallow
+      shell: bash
+      run: git -C ${{ github.action_path }} fetch --unshallow
+
     - name: Install
       shell: bash
       run: sudo ln -svf ${{ github.action_path }}/bin/mkosi /usr/bin/mkosi