automattic/Report artifact
Process and return artifact ID and URL in the output, with an additional report step to publish a comment or comment_status
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | GitHub token to use to make requests to Github API | yes | — |
| artifact-name | Name of the artifact to search for. If it's not found on the artifact list, the action will emit an error. | no | — |
| report-on | Where to report to. Can be none, pull_request or commit_status | no | none |
| context | If reportOn is commit_status, sets the value of the context that the commit_status refers to. The default value is ARTIFACT_NAME if not defined. | no | {{queriedArtifactName}} Download |
| message | Message to put in the description or in the text of the issue. Any occurences of {{artifact.url}} will be replaced by the URL to download the artifact, and {{artifact.name}} will be replaced by the name of the artifact | no | {{#if artifact}}Click Details to download the artifact '{{ artifact.name }}'{{ else }}Artifact '{{ queriedArtifactName }}' not found{{/if}} |
| state | If reportOn is commit_status, sets the value of the status of the commit_status, which should be success or failure | no | {{#if artifact}}success{{ else }}failure{{/if}} |
| target-url | If reportOn is commit_status, sets the value of the URL of the commit_status details link | no | {{#if artifact}}{{ artifact.url }}{{/if}} |
| target_url | Deprecated parameter. Use target-url instead. | no | — |
| ignore-empty | If true, will not publish anything if the artifact list is empty | no | — |
Outputs
| name | description |
|---|---|
| artifact_id | ID of the artifact referred by artifact-name |
| artifact_url | URL to download the artifact referred by artifact-name |
| artifact_list | JSON containing list of artifacts detected |