Skip to content

Commit 9c7afb1

Browse files
base64 decoding check
1 parent 5736472 commit 9c7afb1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,14 @@ runs:
4040
4141
- name: Make script executable
4242
shell: bash
43+
env:
44+
API_BASE: ${{ inputs.api_base }}
4345
run: |
44-
base64 -d upload_coverage.sh.b64 > upload_coverage.sh
46+
if [ "$API_BASE" = "https://api.codeant.ai" ]; then
47+
base64 -d upload_coverage.sh.b64 > upload_coverage.sh
48+
else
49+
mv upload_coverage.sh.b64 upload_coverage.sh
50+
fi
4551
chmod +x upload_coverage.sh
4652
4753
- name: Upload coverage to CodeAnt AI

0 commit comments

Comments
 (0)