Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/actions/reports-group/codacy-uploader/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ inputs:
description: |
Indicates whether to follow symbolic links when resolving `path`
default: 'true'
override-commit:
description: |
Commit to link to the uploaded reports.
Default value:
- `push` workflow: `github.sha`
- `pull_request` workflow: `github.event.pull_request.head.sha`
- `workflow_run` workflow triggered by a `pull_request` or `push` workflow: `github.event.workflow_run.head_sha`
default: "${{ ('workflow_run' == github.event_name && ('pull_request' == github.event.workflow_run.event || 'push' == github.event.workflow_run.event) && github.event.workflow_run.head_sha) || ('pull_request' == github.event_name && github.event.pull_request.head.sha) || ('push' == github.event_name && github.sha) || null }}"

outputs:
groups:
Expand Down Expand Up @@ -78,6 +86,9 @@ runs:
- name: Upload to codacy
id: upload
uses: codacy/codacy-coverage-reporter-action@v1
env:
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:
coverage-reports: ${{ steps.build-uploader-options.outputs.coverage-reports }}
project-token: ${{ inputs.project-token }}
Expand Down
5 changes: 3 additions & 2 deletions .github/actions/reports-group/codecov-uploader/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ inputs:
description: |
Commit to link to the uploaded reports.
Default value:
- `push` and `pull_request` workflow: `github.event.after`
- `push` workflow: `github.sha`
- `pull_request` workflow: `github.event.pull_request.head.sha`
- `workflow_run` workflow triggered by a `pull_request` or `push` workflow: `github.event.workflow_run.head_sha`
default: "${{ ('workflow_run' == github.event_name && ('pull_request' == github.event.workflow_run.event || 'push' == github.event.workflow_run.event) && github.event.workflow_run.head_sha) || (('pull_request' == github.event_name || 'push' == github.event_name) && github.event.pull_request.head.sha) || null }}"
default: "${{ ('workflow_run' == github.event_name && ('pull_request' == github.event.workflow_run.event || 'push' == github.event.workflow_run.event) && github.event.workflow_run.head_sha) || ('pull_request' == github.event_name && github.event.pull_request.head.sha) || ('push' == github.event_name && github.sha) || null }}"
override-branch:
description: |
Branch to link to the uploaded reports.
Expand Down