removed unneccessary debug code
This commit is contained in:
parent
d3aebb7ee3
commit
90b43f4b57
@ -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
|
||||
|
@ -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)"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user