Skip to content

Commit

Permalink
Improve group-reports (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoanm authored Aug 21, 2024
1 parent da4d27a commit e7c72a2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
upload:
name: Upload
name: Coverage
permissions:
contents: read
checks: write # For the check run creation !
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-check-CI-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: ./.github/workflows/reusable-CI-workflow.yml

upload:
name: Upload
name: Coverage
needs: [tests]
permissions:
contents: read
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/reusable-coverage-upload-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ jobs:
steps:
- name: 'Check run ○'
uses: yoanm/temp-reports-group-workspace/gha-attach-check-run-to-triggering-workflow@v0
if: ${{ 'workflow_run' == github.event_name }}
with:
name: 'Fetch coverage info'
name: 'Fetch triggering workflow metadata'
fails-on-triggering-workflow-failure: true

- uses: yoanm/temp-reports-group-workspace/gha-fetch-workflow-metadata@v0
Expand All @@ -28,6 +29,8 @@ jobs:
outputs:
commit-sha: ${{ steps.fetch-workflow-metadata.outputs.commit-sha }}
run-id: ${{ steps.fetch-workflow-metadata.outputs.run-id }}
branch: ${{ steps.fetch-workflow-metadata.outputs.branch }}
pull-request: ${{ steps.fetch-workflow-metadata.outputs.pull-request }}

codacy-uploader:
name: Codacy
Expand Down Expand Up @@ -60,7 +63,7 @@ jobs:
run-id: ${{ needs.fetch-info.outputs.run-id }}
force-git-commit: ${{ needs.fetch-info.outputs.commit-sha }}
force-git-branch: ${{ needs.fetch-info.outputs.branch }}
force-gh-pr: ${{ needs.fetch-info.outputs.pr-number }}
force-gh-pr: ${{ needs.fetch-info.outputs.pull-request }}
force-uploader-build: ${{ needs.fetch-info.outputs.run-id }}
force-uploader-build-url: ${{ needs.fetch-info.outputs.run-url }}

Expand Down

0 comments on commit e7c72a2

Please sign in to comment.