Skip to content

Commit 76366d3

Browse files
handling base64 decoding
1 parent 5121baa commit 76366d3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ runs:
4848
API_BASE: ${{ inputs.api_base }}
4949
run: |
5050
set -e
51-
if [ "$API_BASE" = "https://api.codeant.ai" ]; then
51+
echo "API_BASE value: '${API_BASE}'"
52+
# Remove trailing slash if present for comparison
53+
API_BASE_CLEAN="${API_BASE%/}"
54+
if [[ "$API_BASE_CLEAN" == "https://api.codeant.ai" ]]; then
5255
echo "Decoding base64 encoded script..."
5356
if ! base64 -d quality_gates.sh.b64 > quality_gates.sh; then
5457
echo "Error: Failed to decode quality gates script"

0 commit comments

Comments
 (0)