lean4-htt/.github/workflows
thorimur 5eea8355ba
fix: set check level correctly during workflow (#5344)
Fixes a workflow bug where the `check-level` was not always set
correctly. Arguments to a `gh` call used to determine the `check_level`
were accidentally outside of the relevant command substitution (`$(gh
...)`).

-----

This can be observed in [these
logs](https://github.com/leanprover/lean4/actions/runs/10859763037/job/30139540920),
where the check level (shown first under "configure build matrix") is
`2`, but the PR does not have the `release-ci` tag. As a "test", run the
script for "set check level" printed in those logs (with some lines
omitted):
```
check_level=0

labels="$(gh api repos/leanprover/lean4/pulls/5343) --jq '.labels'"
if echo "$labels" | grep -q "release-ci"; then
  check_level=2
elif echo "$labels" | grep -q "merge-ci"; then
  check_level=1
fi

echo "check_level=$check_level"
```
Note that this prints `check_level=2`, but changing `labels` to
`labels="$(gh api repos/leanprover/lean4/pulls/5343 --jq '.labels')"`
prints `check_level=0`.
2024-09-14 08:14:08 +00:00
..
actionlint.yml chore: bump actions/checkout and actions/upload-artifacts (#4664) 2024-07-07 20:26:59 +00:00
backport.yml chore: CI: add backport action 2023-09-25 11:33:14 +02:00
check-prelude.yml chore: CI: typo 2024-02-23 18:23:00 +01:00
check-stage0.yml chore: ci to set “changes-stage0” label (#3979) 2024-04-24 07:08:34 +00:00
ci.yml fix: set check level correctly during workflow (#5344) 2024-09-14 08:14:08 +00:00
copyright-header.yml feat: trace.profiler export to Firefox Profiler (#3801) 2024-04-15 12:13:14 +00:00
jira.yml chore: CI: Jira sync 2024-07-24 19:52:55 +02:00
labels-from-comments.yml feat: allow addition of release-ci label via comment (#5343) 2024-09-14 08:13:48 +00:00
nix-ci.yml feat: use save-always in cache action (#5010) 2024-08-13 09:27:15 +00:00
pr-release.yml chore: pr-release: pass --retry to curl (#5025) 2024-08-13 16:19:43 +00:00
pr-title.yml chore: CI: update github-script (#3002) 2023-12-01 08:39:51 +00:00
restart-on-label.yml chore: restart-on-label: Also filter by commit SHA (#5099) 2024-08-20 07:45:43 +00:00
stale.yml chore: activate stale PR labeler 2023-09-20 09:18:46 +02:00
update-stage0.yml chore: upgrade cache action to silence warnings (#5003) 2024-08-12 15:46:53 +00:00