]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
action: Install to $HOME/.local/bin as well 3243/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 29 Nov 2024 09:27:56 +0000 (10:27 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 29 Nov 2024 09:51:12 +0000 (10:51 +0100)
action.yaml

index 3fff63b9c40b79100088fe9b5531ec57cacacf9b..b2afc1a708aeddb4a2ddd118141fdfda174fcd03 100644 (file)
@@ -58,7 +58,12 @@ runs:
 
     - name: Install
       shell: bash
-      run: sudo ln -svf ${{ github.action_path }}/bin/mkosi /usr/bin/mkosi
+      run: |
+        sudo ln -svf ${{ github.action_path }}/bin/mkosi /usr/bin/mkosi
+        # Make sure that mkosi is still found inside "mkosi sandbox" where /usr is potentially replaced with
+        # a tools tree's /usr.
+        mkdir -p $HOME/.local/bin/mkosi
+        ln -svf ${{ github.action_path }}/bin/mkosi $HOME/.local/bin/mkosi
 
     - name: Dependencies
       shell: bash