Skip to content

Commit ed2c405

Browse files
Remove useless empty shell variable checks (#420)
These were initially added when shellcheck rules still required validating all environment variables. Since then capitalized environment variables are allowed with shellcheck to avoid bloated checks.
1 parent 9c291ee commit ed2c405

2 files changed

Lines changed: 0 additions & 49 deletions

File tree

.github/actions/mise-project-setup/init.sh

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,7 @@
22

33
set -euo pipefail
44

5-
# Verify GitHub Actions environment variables
6-
if [[ -z "${GITHUB_ENV}" ]]; then
7-
echo "::error::GITHUB_ENV is not set"
8-
exit 1
9-
fi
10-
if [[ -z "${GITHUB_OUTPUT}" ]]; then
11-
echo "::error::GITHUB_OUTPUT is not set"
12-
exit 1
13-
fi
14-
if [[ -z "${RUNNER_OS}" ]]; then
15-
echo "::error::RUNNER_OS is not set"
16-
exit 1
17-
fi
18-
if [[ -z "${RUNNER_TEMP}" ]]; then
19-
echo "::error::RUNNER_TEMP is not set"
20-
exit 1
21-
fi
22-
235
# Validate inputs
24-
if [[ -z "${MISE_VERSION}" ]]; then
25-
echo "::error::MISE_VERSION is not set"
26-
exit 1
27-
fi
28-
29-
if [[ -z "${CACHE_MODE}" ]]; then
30-
echo "::error::CACHE_MODE is not set"
31-
exit 1
32-
fi
336
case "${CACHE_MODE}" in
347
prepare | use) ;;
358
*)

.github/actions/uv-project-setup/init.sh

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,7 @@
22

33
set -euo pipefail
44

5-
# Verify GitHub Actions environment variables
6-
if [[ -z "${GITHUB_ENV}" ]]; then
7-
echo "::error::GITHUB_ENV is not set"
8-
exit 1
9-
fi
10-
if [[ -z "${GITHUB_OUTPUT}" ]]; then
11-
echo "::error::GITHUB_OUTPUT is not set"
12-
exit 1
13-
fi
14-
if [[ -z "${RUNNER_OS}" ]]; then
15-
echo "::error::RUNNER_OS is not set"
16-
exit 1
17-
fi
18-
if [[ -z "${RUNNER_TEMP}" ]]; then
19-
echo "::error::RUNNER_TEMP is not set"
20-
exit 1
21-
fi
22-
235
# Validate inputs
24-
if [[ -z "${CACHE_MODE}" ]]; then
25-
echo "::error::CACHE_MODE is not set"
26-
exit 1
27-
fi
286
case "${CACHE_MODE}" in
297
prepare | use) ;;
308
*)

0 commit comments

Comments
 (0)