Skip to content

Commit 73d157e

Browse files
committed
Fix commit override
1 parent 6c7d893 commit 73d157e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/actions/reports-group/codacy-uploader/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ inputs:
1616
description: |
1717
Commit to link to the uploaded reports.
1818
Default value:
19-
- `push` and `pull_request` workflow: `github.event.after`
19+
- `push` workflow: `github.sha`
20+
- `pull_request` workflow: `github.event.pull_request.head.sha`
2021
- `workflow_run` workflow triggered by a `pull_request` or `push` workflow: `github.event.workflow_run.head_sha`
21-
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.after) || null }}"
22+
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 }}"
2223

2324
outputs:
2425
groups:

.github/actions/reports-group/codecov-uploader/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ inputs:
1616
description: |
1717
Commit to link to the uploaded reports.
1818
Default value:
19-
- `push` and `pull_request` workflow: `github.event.after`
19+
- `push` workflow: `github.sha`
20+
- `pull_request` workflow: `github.event.pull_request.head.sha`
2021
- `workflow_run` workflow triggered by a `pull_request` or `push` workflow: `github.event.workflow_run.head_sha`
21-
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 }}"
22+
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 }}"
2223
override-branch:
2324
description: |
2425
Branch to link to the uploaded reports.

0 commit comments

Comments
 (0)