Coverage #271
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Coverage upload' | ||
on: | ||
workflow_run: | ||
workflows: ["CI"] | ||
types: [completed] | ||
jobs: | ||
fetch-info: | ||
name: Fetch triggering workflow metadata | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
checks: write # For the check run creation ! | ||
steps: | ||
- name: 'Check run ○' | ||
uses: yoanm/temp-reports-group-workspace/.github/actions/attach-check-run-to-triggering-workflow-action@develop | ||
with: | ||
name: 'Fetch coverage info' | ||
fails-on-triggering-workflow-failure: true | ||
- uses: yoanm/temp-reports-group-workspace/.github/actions/fetch-workflow-metadata-action@develop | ||
id: fetch-workflow-metadata | ||
outputs: | ||
commit-sha: ${{ steps.fetch-workflow-metadata.outputs.commit-sha }} | ||
run-id: ${{ steps.fetch-workflow-metadata.outputs.run-id }} | ||
codacy-uploader: | ||
name: Codacy | ||
needs: [fetch-info] | ||
uses: yoanm/temp-reports-group-workspace/.github/workflows/codacy-upload-from-artifacts.yml@develop | ||
permissions: | ||
contents: read | ||
checks: write # For the check run creation ! | ||
secrets: | ||
PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
with: | ||
artifacts-pattern: coverage-groups-* | ||
run-id: ${{ needs.fetch-info.outputs.run-id }} | ||
override-commit: ${{ needs.fetch-info.outputs.commit-sha }} | ||
Check failure on line 40 in .github/workflows/coverage-upload.yml GitHub Actions / Coverage uploadInvalid workflow file
|
||
codecov-uploader: | ||
name: Codecov | ||
needs: [fetch-info] | ||
uses: yoanm/temp-reports-group-workspace/.github/workflows/codecov-upload-from-artifacts.yml@develop | ||
permissions: | ||
contents: read | ||
checks: write # For the check run creation ! | ||
secrets: | ||
TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
with: | ||
artifacts-pattern: coverage-groups-* | ||
run-id: ${{ needs.fetch-info.outputs.run-id }} | ||
override-commit: ${{ needs.fetch-info.outputs.commit-sha }} | ||
override-branch: ${{ needs.fetch-info.outputs.branch }} | ||
override-pr: ${{ needs.fetch-info.outputs.pr-number }} | ||
override-build: ${{ needs.fetch-info.outputs.run-id }} | ||
override-build-url: ${{ needs.fetch-info.outputs.run-url }} | ||
debug-context: | ||
name: DEBUG - context | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: | | ||
echo '{' | ||
echo '"github.action": ${{ toJson(github.action) }},' | ||
echo '"github.action_path": ${{ toJson(github.action_path) }},' | ||
echo '"github.action_ref": ${{ toJson(github.action_ref) }},' | ||
echo '"github.action_repository": ${{ toJson(github.action_repository) }},' | ||
echo '"github.action_status": ${{ toJson(github.action_status) }},' | ||
echo '"github.actor": ${{ toJson(github.actor) }},' | ||
echo '"github.actor_id": ${{ toJson(github.actor_id) }},' | ||
echo '"github.base_ref": ${{ toJson(github.base_ref) }},' | ||
echo '"github.event": ${{ toJson(github.event) }},' | ||
echo '"github.event_name": ${{ toJson(github.event_name) }},' | ||
echo '"github.event_path": ${{ toJson(github.event_path) }},' | ||
echo '"github.head_ref": ${{ toJson(github.head_ref) }},' | ||
echo '"github.job": ${{ toJson(github.job) }},' | ||
echo '"github.path": ${{ toJson(github.path) }},' | ||
echo '"github.ref": ${{ toJson(github.ref) }},' | ||
echo '"github.ref_name": ${{ toJson(github.ref_name) }},' | ||
echo '"github.ref_protected": ${{ toJson(github.ref_protected) }},' | ||
echo '"github.ref_type": ${{ toJson(github.ref_type) }},' | ||
echo '"github.repository": ${{ toJson(github.repository) }},' | ||
echo '"github.repository_id": ${{ toJson(github.repository_id) }},' | ||
echo '"github.repository_owner": ${{ toJson(github.repository_owner) }},' | ||
echo '"github.repository_owner_id": ${{ toJson(github.repository_owner_id) }},' | ||
echo '"github.repositoryUrl": ${{ toJson(github.repositoryUrl) }},' | ||
echo '"github.run_id": ${{ toJson(github.run_id) }},' | ||
echo '"github.run_number": ${{ toJson(github.run_number) }},' | ||
echo '"github.run_attempt": ${{ toJson(github.run_attempt) }},' | ||
echo '"github.sha": ${{ toJson(github.sha) }},' | ||
echo '"github.triggering_actor": ${{ toJson(github.triggering_actor) }},' | ||
echo '"github.workflow": ${{ toJson(github.workflow) }},' | ||
echo '"github.workflow_ref": ${{ toJson(github.workflow_ref) }},' | ||
echo '"github.workflow_sha": ${{ toJson(github.workflow_sha) }},' | ||
echo '"github.workspace": ${{ toJson(github.workspace) }}' | ||
echo '}' | ||
debug-uploads: | ||
name: DEBUG - Uploaders | ||
runs-on: ubuntu-latest | ||
needs: [ codacy-uploader, codecov-uploader ] | ||
steps: | ||
- run: echo 'codecov='"'"'${{ toJson(needs.codecov-uploader) }}'"'" | ||
- run: echo 'codacy='"'"'${{ toJson(needs.codacy-uploader) }}'"'" |