removed unneccessary debug code

This commit is contained in:
Lu Baumann 2023-10-17 01:50:56 +00:00 committed by GitHub
parent d3aebb7ee3
commit 90b43f4b57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 7 deletions

View File

@ -19,8 +19,6 @@ runs:
- name: Replace excalidraw file references
run: find "${{ github.workspace }}" -type f -name '*.md' -exec sed -ri 's|\[\[(.*\.excalidraw)\]\]|![\1](\1.csv)|g' "{}" ";"
shell: bash
- name: Debug - Setup upterm session
uses: lhotari/action-upterm@v1
- name: Stop containers
run: docker-compose -f "${{ github.action_path }}/docker-compose.yml" down
shell: bash

View File

@ -1,11 +1,6 @@
#!/usr/bin/env bash
echo ::debug::'$1:' "$1"
echo ::debug::'$2:' "$2"
EXCALIDRAW="$(jq '{"type": .type, "version": .version, "source": .source, "elements": .elements, "appState": {"gridSize": null, "exportWithDarkMode": '"$2"'}}' "$1")"
ENCODED="$(echo $EXCALIDRAW | python -c "import sys; import base64; import zlib; print(base64.urlsafe_b64encode(zlib.compress(sys.stdin.read().encode('utf-8'), 9)).decode('ascii'))")"
echo ::debug::'$EXCALIDRAW' "$EXCALIDRAW"
echo ::debug::'$ENCODED' "$ENCODED"
docker ps
curl "localhost:8080/excalidraw/svg/$ENCODED" > "$1.svg"
echo ::debug::"svg: $(cat $1.svg)"