c-hive / gha-remove-artifacts

GitHub Action to customize artifact cleanup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use @actions/core `setFailed()` to mark the run as failed

gomorizsolt opened this issue · comments

AFAICT if there's an error somewhere in the code then it won't be reflected on the CI's interface currently(i.e. the run-action job doesn't reflect the fail with the red X icon even if e.g. there's an unhandled promise rejection). I'd propose using core.setFailed() to explicitly mark a run as failed. Perhaps there are some other debug utility functions we may take advantage of.

Resolved by #19.