Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since #1742, the `generate_versions` CI job [succeeds even though it can't parse the JSON file][1]. Parsing fails because `jq` [doesn't support JSON5][2]. The job succeeds silently despite this failure because it's ran inside [command substitution][3]. This currently results in #1751 not running proper tests. Fix the `generate_versions` CI job to correctly parse the JSON5 file by stripping comment lines before passing its content to `jq`. Also ensure the job will fail if the step fails by running it once outside command substitution and ensuring `pipefail` is on. This replaces the "debug" step. [1]: https://github.com/gradle/android-cache-fix-gradle-plugin/actions/runs/12717112831 [2]: jqlang/jq#1571 [3]: https://www.gnu.org/software/bash/manual/html_node/Command-Substitution.html
- Loading branch information