diff --git a/.github/workflows/flatpak-build.yml b/.github/workflows/flatpak-build.yml index 8b0f271dae..31776a9faa 100644 --- a/.github/workflows/flatpak-build.yml +++ b/.github/workflows/flatpak-build.yml @@ -12,6 +12,14 @@ jobs: - name: Checkout main repository uses: actions/checkout@v4 + - name: Force clean git cache permissions + run: | + if [ -d "./git-cache" ]; then + sudo find ./git-cache -type d -exec chmod 755 {} \; + sudo find ./git-cache -type f -exec chmod 644 {} \; + sudo chown -R $(id -u):$(id -g) ./git-cache || true + fi + - name: Cache Git dependencies id: cache-git-repos uses: actions/cache@v4