We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a10915 commit 9b6d1f8Copy full SHA for 9b6d1f8
1 file changed
action.yml
@@ -180,13 +180,20 @@ runs:
180
run: |
181
missing_deps=""
182
183
- # Check for required commands
184
- for cmd in bash git curl gpg; do
+ # Check for always-required commands
+ for cmd in bash git curl; do
185
if ! command -v "$cmd" >/dev/null 2>&1; then
186
missing_deps="$missing_deps $cmd"
187
fi
188
done
189
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
196
+
197
# Report missing required dependencies
198
if [ -n "$missing_deps" ]; then
199
echo "Error: The following required dependencies are missing:$missing_deps"
0 commit comments