diff --git a/.github/actions/job-preamble/action.yml b/.github/actions/job-preamble/action.yml new file mode 100644 index 0000000000..42f59f243c --- /dev/null +++ b/.github/actions/job-preamble/action.yml @@ -0,0 +1,17 @@ +name: Job Preamble +description: Common steps for most jobs +runs: + using: composite + steps: + - name: Recover docker image cache space + run: | + df --si / + docker system prune --force --all + df --si / + shell: bash + + - name: Ignore dubious repository ownership + run: | + # Prevent fatal error "detected dubious ownership in repository" from recent git. + git config --global --add safe.directory "$(pwd)" + shell: bash diff --git a/.github/workflows/support-packages.yml b/.github/workflows/support-packages.yml index 650681ebb1..a04817cf69 100644 --- a/.github/workflows/support-packages.yml +++ b/.github/workflows/support-packages.yml @@ -57,6 +57,8 @@ jobs: upstream-drivers-bucket: gs://${{ inputs.upstream-drivers-bucket }} downstream-drivers-bucket: gs://${{ inputs.downstream-drivers-bucket }} + - uses: ./.github/actions/job-preamble + - name: Create support-packages run: | ${{ github.workspace }}/kernel-modules/support-packages/04-create-support-packages.sh \