Here’s an issue draft based on your failing job:
The Delete Merged Branches workflow is failing due to a jq syntax error when checking PR status for the branch MSNev/StatsBeat.
Error excerpt:
jq: error: syntax error, unexpected INVALID_CHARACTER, expecting end of file (Unix shell quoting issues?) at <top-level>, line 1:
[.[] | select(.state == "closed" and .merged_at == null)] \
jq: 1 compile error
Workflow file: .github/workflows/delete-merged-branches.yml
Proposed Solution:
- Correct the jq filter syntax to:
jq '[.[] | select(.state == "closed" and (.merged_at == null))]'
- Ensure proper shell quoting and that the JSON input matches the expected structure.
Reference: