diff --git a/.github/workflows/build_all.yml b/.github/workflows/build_all.yml index d8b76a26c1..6007294ee0 100644 --- a/.github/workflows/build_all.yml +++ b/.github/workflows/build_all.yml @@ -242,4 +242,10 @@ jobs: asset_name: OrcaSlicer-Linux-flatpak_nightly_${{ matrix.variant.arch }}.flatpak asset_content_type: application/octet-stream max_releases: 1 # optional, if there are more releases than this matching the asset_name, the oldest ones are going to be deleted + - name: Fix ownership of root-owned files on self-hosted runners + if: ${{ always() && vars.SELF_HOSTED }} + run: | + runner_uid=$(stat -c '%u' .) + chown -R "$runner_uid:$runner_uid" .flatpak-builder + shell: bash