Skip to content

Add link to summary report #325

@atteggiani

Description

@atteggiani

Overview

I think it would be useful to add a link to the summary report (if included), once the action terminates (both if it succeeded or if it failed).

Users might not know that a summary report is generated and might try to look for failures through the whole output, which can be quite verbose and harder to understand. I think a link to the summary report would simplify debugging operations.

Possible implementation

Add a step after run-lychee to the action.yml that logs the summary report:

- name: Log summary
   if: always() && inputs.JOBSUMMARY == true
   shell: bash
   env:
     SUMMARY_URL: '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}#summary-${{job.check_run_id}}'
   run: echo "Summary report: ${{ env.SUMMARY_URL }}"

Happy to open a PR if this sounds like a good addition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions