Skip to content

Commit 0079a81

Browse files
committed
Fix
1 parent 12adeff commit 0079a81

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

.github/workflows/CI.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ jobs:
219219
runs-on: ubuntu-latest
220220
needs: [ codacy-uploader, codecov-uploader ]
221221
steps:
222-
- run: echo 'github='"'"'${{ toJson(github) }}'"'"
223222
- run: echo 'codecov='"'"'${{ toJson(needs.codecov-uploader) }}'"'"
224223
- run: echo 'codacy='"'"'${{ toJson(needs.codacy-uploader) }}'"'"
225224
## <<< Trusted - to move to a workflow_run workflow

.github/workflows/codacy-upload-from-artifacts.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
required: true
77
type: string
88
run-id:
9+
description: |
10+
The id of the workflow run where the artifacts were uploaded from (default to current run).
11+
In case artefacts have been uploadded from another run, this input must be filled with original workflow !
912
required: false
1013
default: "${{ github.run_id }}"
1114
type: string
@@ -38,7 +41,8 @@ jobs:
3841
with:
3942
pattern: ${{ inputs.artifacts-pattern }}
4043
path: job-artifacts
41-
run-id: ${{ inputs.run-id }}
44+
github-token: ${{ github.token }} # Required in order to use `run-id` parameter !
45+
run-id: ${{ inputs.run-id }} # Required in case workflow is executed from another run (e.g. `workflow_run`)
4246

4347
- name: Upload all reports
4448
id: upload

.github/workflows/codecov-upload-from-artifacts.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
required: true
77
type: string
88
run-id:
9+
description: |
10+
The id of the workflow run where the artifacts were uploaded from (default to current run).
11+
In case artefacts have been uploadded from another run, original workflow run has to be provided as well as `ARTEFACT_DOWNLOAD_TOKEN` secret !
912
required: false
1013
default: "${{ github.run_id }}"
1114
type: string
@@ -35,7 +38,8 @@ jobs:
3538
with:
3639
pattern: ${{ inputs.artifacts-pattern }}
3740
path: job-artifacts
38-
run-id: ${{ inputs.run-id }}
41+
github-token: ${{ github.token }} # Required in order to use `run-id` parameter !
42+
run-id: ${{ inputs.run-id }} # Required in case workflow is executed from another run (e.g. `workflow_run`)
3943

4044
- name: DEBUG artifacts
4145
run: |
@@ -104,6 +108,8 @@ jobs:
104108
with:
105109
name: ${{ matrix.artifact }}
106110
path: job-artifact
111+
github-token: ${{ github.token }} # Required in order to use `run-id` parameter !
112+
run-id: ${{ inputs.run-id }} # Required in case workflow is executed from another run (e.g. `workflow_run`)
107113

108114
- name: DEBUG artifacts
109115
run: |

.github/workflows/coverage-upload.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ jobs:
2525
secrets:
2626
TOKEN: ${{ secrets.CODECOV_TOKEN }}
2727

28+
debug-context:
29+
name: DEBUG - context
30+
runs-on: ubuntu-latest
31+
steps:
32+
- run: echo 'github event='"'"'${{ toJson(github.event) }}'"'"
33+
2834
debug-uploads:
2935
name: DEBUG - Uploaders
3036
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)