From b487938e6dcf77539d7e010a3057d98a2ebc252d Mon Sep 17 00:00:00 2001
From: XargonWan <6771419+XargonWan@users.noreply.github.com>
Date: Sun, 23 Oct 2022 09:21:52 +0200
Subject: [PATCH] Allowing git and file protocols for the flatpak builder

---
 .github/workflows/cooker-selfhosted.yml | 2 ++
 .github/workflows/main-selfhosted.yml   | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/.github/workflows/cooker-selfhosted.yml b/.github/workflows/cooker-selfhosted.yml
index 7dbb368c..ecb61b07 100644
--- a/.github/workflows/cooker-selfhosted.yml
+++ b/.github/workflows/cooker-selfhosted.yml
@@ -44,6 +44,8 @@ jobs:
 
       - name: Build flatpak
         run: |
+          git config --global protocol.allow git
+          git config --global protocol.allow file
           flatpak-builder --user --force-clean --install-deps-from=flathub --install-deps-from=flathub-beta --repo=${GITHUB_WORKSPACE}/local ${GITHUB_WORKSPACE}/retrodeck-flatpak-cooker net.retrodeck.retrodeck.yml
 
       - name: Create Artifact for flathub
diff --git a/.github/workflows/main-selfhosted.yml b/.github/workflows/main-selfhosted.yml
index d7ac14c2..c72d541b 100644
--- a/.github/workflows/main-selfhosted.yml
+++ b/.github/workflows/main-selfhosted.yml
@@ -44,6 +44,8 @@ jobs:
 
       - name: Build flatpak
         run: |
+          git config --global protocol.allow git
+          git config --global protocol.allow file
           flatpak-builder --user --force-clean --install-deps-from=flathub --install-deps-from=flathub-beta --repo=${GITHUB_WORKSPACE}/local ${GITHUB_WORKSPACE}/retrodeck-flatpak-main net.retrodeck.retrodeck.yml
 
       - name: Create Artifact for flathub