Skip to content

CI cleanup fails if there is nothing to clean up #1558

@Kern--

Description

@Kern--

Describe the bug
https://github.com/runfinch/finch/actions/runs/17709046722

If something goes wrong during a CI run and there are no files in the workspace, then subsequent cleanup steps fail because no files match the glob here:

rm -rf ${{ github.workspace }}/*

Steps to reproduce
A clear, step-by-step set of instructions to reproduce the bug.

Expected behavior
If there are no files to clean up, the cleanup step should succeed as a no-op.

Screenshots or logs
If applicable, add screenshots or logs to help explain your problem.

Additional context
Add any other context about the problem here.

To help debug the issue as quickly as possible, we recommend generating a support bundle with finch support-bundle generate and attaching it to this issue. This packages all Finch-related configs and logs into one file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions