Avoid reusable CI failure when there are no shell scripts #6

Closed
opened 2024-11-27 19:03:01 +01:00 by 2franix · 1 comment
Owner

The action fails when the repo does not contain any file. Either fix the action or embed shellcheck in the devops image and use a simple run command (probably harder than it seems because shellcheck only checks one file at a time).

The action fails when the repo does not contain any file. Either fix the action or embed shellcheck in the devops image and use a simple run command (probably harder than it seems because shellcheck only checks one file at a time).
2franix added this to the GitOps project 2024-11-27 19:03:04 +01:00
Author
Owner

A simple workaround consists in not checking all files together (the check_together input of the action must be left unset). In that case, the action handles the absence of file neatly.

The workflow was refactored in #7 to support that better.

A simple workaround consists in not checking all files together (the `check_together` input of the action must be left unset). In that case, the action handles the absence of file neatly. The workflow was refactored in #7 to support that better.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: self-hosting/workflows#6
No description provided.