From 90b43f4b571da22eb3b8261fa989f7f05da1b6d7 Mon Sep 17 00:00:00 2001 From: Lu Baumann Date: Tue, 17 Oct 2023 01:50:56 +0000 Subject: [PATCH] removed unneccessary debug code --- action.yml | 2 -- to_svg.sh | 5 ----- 2 files changed, 7 deletions(-) diff --git a/action.yml b/action.yml index 942130f..c9673df 100644 --- a/action.yml +++ b/action.yml @@ -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 diff --git a/to_svg.sh b/to_svg.sh index 0488ea3..cbfee2a 100755 --- a/to_svg.sh +++ b/to_svg.sh @@ -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)" -