From 1dc68a310f39bbad9ac78d2aaec3b4e6d8c3acba Mon Sep 17 00:00:00 2001 From: Surferlul Date: Sun, 15 Oct 2023 12:14:56 +0200 Subject: [PATCH] added replacing markdown syntax --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index c899193..e683135 100644 --- a/action.yml +++ b/action.yml @@ -15,7 +15,7 @@ runs: run: find "${{ github.workspace }}" -type f -name '*.excalidraw' -exec bash "${{ github.action_path }}/to_svg.sh" "{}" ${{ inputs.dark-mode == 'true' }} ";" shell: bash - name: Replace excalidraw file references - run: find "${{ github.workspace }}" -type f -name '*.md' -exec sed -ri 's|(\[\[.*\.excalidraw)(\]\])|\1.csv\2|g' "{}" ";" + run: find "${{ github.workspace }}" -type f -name '*.md' -exec sed -ri 's|\[\[(.*\.excalidraw)\]\]|![\1](\1.csv)|g' "{}" ";" shell: bash - name: Stop containers run: docker-compose -f "${{ github.action_path }}/docker-compose.yml" down