Skip to content

Commit ba8d973

Browse files
authored
PI-2672 Fix Sonar change detection by leaving git directory (#4473)
PI-2672 Fix Sonar change detection by leaving git detection May result in slightly longer build times due to configuration cache misses, but it's not the end of the world
1 parent 72e001b commit ba8d973

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

.github/actions/get-build-info/action.yml

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ runs:
2828
with:
2929
cache-encryption-key: ${{ inputs.gradle-encryption-key }}
3030
cache-read-only: true
31-
remove-git-dir: false
3231

3332
- name: Get build info
3433
if: ${{ steps.gradle_file.outputs.files_exists == 'true' }}

.github/actions/setup-gradle/action.yml

-7
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ inputs:
1414
A suitable key can be generated with `openssl rand -base64 16`.
1515
Configuration-cache data will not be saved/restored without an encryption key being provided.
1616
required: false
17-
remove-git-dir:
18-
description: Whether to remove the .git directory to prevent configuration cache invalidation.
19-
required: false
20-
default: 'true'
2117

2218
runs:
2319
using: "composite"
@@ -35,6 +31,3 @@ runs:
3531
with:
3632
path: buildSrc/build
3733
key: gradle-buildSrc-${{ hashFiles('buildSrc/src/**', 'buildSrc/build.gradle.kts') }}
38-
- if: inputs.remove-git-dir == 'true'
39-
run: rm -rf .git
40-
shell: bash

0 commit comments

Comments
 (0)