Skip to content

Commit 9b6d1f8

Browse files
check gpg only when skip-validation = false (#1894)
1 parent 5a10915 commit 9b6d1f8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

action.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,20 @@ runs:
180180
run: |
181181
missing_deps=""
182182
183-
# Check for required commands
184-
for cmd in bash git curl gpg; do
183+
# Check for always-required commands
184+
for cmd in bash git curl; do
185185
if ! command -v "$cmd" >/dev/null 2>&1; then
186186
missing_deps="$missing_deps $cmd"
187187
fi
188188
done
189189
190+
# Check for gpg only if validation is not being skipped
191+
if [ "${{ inputs.skip_validation }}" != "true" ]; then
192+
if ! command -v gpg >/dev/null 2>&1; then
193+
missing_deps="$missing_deps gpg"
194+
fi
195+
fi
196+
190197
# Report missing required dependencies
191198
if [ -n "$missing_deps" ]; then
192199
echo "Error: The following required dependencies are missing:$missing_deps"

0 commit comments

Comments
 (0)