Skip to content
Merged
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
49 changes: 49 additions & 0 deletions .github/actions/reports-group/codecov-uploader/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,49 @@ 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` and `pull_request` workflow: `github.event.after`
- `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.workflow_run.event || 'push' == github.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 }}"
override-branch:
description: |
Branch to link to the uploaded reports.
Default value:
- `push` workflow: `github.ref_name` *if `github.ref_type` equals `branch`
- `pull_request` workflow: `github.event.pull_request.head.ref`
- `workflow_run` workflow triggered by a `pull_request` or `push` workflow: `github.event.workflow_run.head_branch`
default: "${{ ('workflow_run' == github.event_name && ('pull_request' == github.workflow_run.event || 'push' == github.workflow_run.event) && github.event.workflow_run.head_branch) || ('pull_request' == github.event_name && github.event.pull_request.head.ref) || ('push' == github.event_name && 'branch' == github.ref_type && github.sha) || null }}"
override-pr:
description: |
PR to link to the uploaded reports.
Default value:
- `pull_request` workflow: `github.event.number`
- `workflow_run` workflow triggered by a `pull_request` workflow: `github.event.workflow_run.pull_requests[0].number`
default: "${{ ( 'workflow_run' == github.event_name && 'pull_request' == github.workflow_run.event && github.event.workflow_run.pull_requests[0] && github.event.workflow_run.pull_requests[0].number) || ('pull_request' == github.event_name && github.event.number) || null }}"
# commit-parent: # @TODO Not sure what it is (enable debug mode during upload to see what is actually sent by the uploader)
# description: |
# Parent commit to link to the uploaded reports. Most likely only useful for PR.
# Default value:
# - `pull_request` workflow: `github.event.number`
# - `workflow_run` workflow triggered by a `pull_request` workflow: `github.event.workflow_run.pull_requests[0].number`
# default: "${{ ('workflow_run' == github.event_name && ('pull_request' == github.workflow_run.event || 'push' == github.workflow_run.event) && github.event.workflow_run.head_branch) || ('pull_request' == github.event_name && github.event.pull_request.head.ref) || ('push' == github.event_name && github.sha) || null }}"
override-build:
description: |
Workflow run to link to the uploaded reports
Default value:
- `workflow_run` workflow: `github.event.workflow_run.id`
- Else: `github.run_id`
default: "${{ ('workflow_run' == github.event_name && github.event.workflow_run.id) || github.run_id || null }}"
override-build-url:
description: |
Workflow run url to link to the uploaded reports
Default value:
- `workflow_run` workflow: `github.event.workflow_run.id`
- Else: `github.run_id`
default: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ ('workflow_run' == github.event_name && github.event.workflow_run.id) || github.run_id }}"

outputs:
groups:
Expand Down Expand Up @@ -93,6 +136,12 @@ runs:
name: ${{ steps.build-uploader-options.outputs.name }}
files: ${{ steps.build-uploader-options.outputs.files }}
flags: ${{ steps.build-uploader-options.outputs.flags }}
commit_parent: ${{ inputs.commit-parent }}
override_branch: ${{ inputs.override-branch }}
override_commit: ${{ inputs.override-commit }}
override_pr: ${{ inputs.override-pr }}
override_build: ${{ inputs.override-build }}
override_build_url: ${{ inputs.override-build-url }}
# underlying CLI behavior
disable_search: true
# GHAction behavior
Expand Down