fixed wrong variable access

This commit is contained in:
Lu Baumann 2023-10-15 12:05:58 +02:00 committed by GitHub
parent 863300c4d8
commit 90f98307fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,6 @@
name: Logseq Excalidraw to SVG name: Logseq Excalidraw to SVG
description: Converts excalidraw to svg references description: Converts excalidraw to svg references
inputs: inputs:
home-md-file:
description: Markdown file of the page you see when accessing the published site
required: false
dark-mode: dark-mode:
description: If drawings should be exported in dark mode description: If drawings should be exported in dark mode
required: false required: false
@ -15,7 +12,7 @@ runs:
run: docker-compose -f "${{ github.action_path }}/docker-compose.yml" up -d --build run: docker-compose -f "${{ github.action_path }}/docker-compose.yml" up -d --build
shell: bash shell: bash
- name: Creating SVG files - name: Creating SVG files
run: find "${{ github.workspace }}" -type f -name '*.excalidraw' -exec bash "${{ github.action_path }}/to_svg.sh" "{}" ${{ input.dark-mode == 'true' }} ";" run: find "${{ github.workspace }}" -type f -name '*.excalidraw' -exec bash "${{ github.action_path }}/to_svg.sh" "{}" ${{ inputs.dark-mode == 'true' }} ";"
shell: bash shell: bash
- name: Replace excalidraw file references - 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.csv\2|g' "{}" ";"