diff --git a/.github/actions/reports-group/codacy-uploader/action.yml b/.github/actions/reports-group/codacy-uploader/action.yml index a569441a..88790f70 100644 --- a/.github/actions/reports-group/codacy-uploader/action.yml +++ b/.github/actions/reports-group/codacy-uploader/action.yml @@ -83,10 +83,15 @@ runs: script: | core.setFailed('Unable to retrieve any report to upload. Something wrong most likely happened !'); + - name: TMP - create an empty workspace # Repository used for custom action might interfere with Codacy, so to check + shell: bash + run: mkdir empty-codacy-workspace + - name: Upload to codacy id: upload uses: codacy/codacy-coverage-reporter-action@v1 env: + GITHUB_WORKSPACE: ./empty-codacy-workspace # TMP GITHUB_SHA: ${{ inputs.override-commit }} # Lonely way to override the commit without having to deal with CLI uploader directly :/ GITHUB_EVENT_NAME: push # Force the event to "push" to be sure uploader will leverage GITHUB_SHA and not something else (mostly in case event is `pull_request`) with: