Skip to content

Commit

Permalink
Fix output from docker run
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisPalnitsky committed Jun 21, 2022
1 parent 4db0b6d commit 1e3595a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
17 changes: 9 additions & 8 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,19 @@ runs:
- name: Render Diagrams
env:
FILE_NAME: ${{ inputs.filename }}
TARGET_PATH: ${{ github.workspace }}/${{ inputs.target-clone-dir }}/${{ inputs.path }}
TARGET_PATH: ${{ inputs.target-clone-dir }}/${{ inputs.path }}
run: |
mkdir -p $TARGET_PATH/mermaid
docker run --rm -v $PWD:/usr/local/structurizr structurizr/cli export -f mermaid -w $FILE_NAME -o $TARGET_PATH/mermaid
docker run --rm -v $PWD:/usr/local/structurizr structurizr/cli export -f mermaid -w $FILE_NAME -o $TARGET_PATH/mermaid
echo "of mermaid files"
ls $TARGET_PATH/mermaid
${{ github.action_path }}/run.sh
shell: bash

- name: Render Markdown
shell: bash
working-directory: ${{ github.workspace }}/${{ inputs.target-clone-dir }}/${{ inputs.path }}
run: ${{ github.action_path }}/run.sh


# - name: Render Markdown
# shell: bash
# working-directory:
# run:

- name: commit
shell: bash
Expand Down
5 changes: 4 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
cd $TARGET_PATH

rm -rf ./md
mkdir ./md

Expand All @@ -8,11 +10,12 @@ rm $INDX
echo "# Ukama C4 Diagrams" >> $INDX
echo "" >> $INDX


echo "Current dir: " $(pwd)
echo "Current files:"
ls
echo List of mermaid files:
ls $PWD/mermaid
ls $PWD/mermaid
for file in $PWD/mermaid/*.mmd; do
file_only=${file##*/}
name=${file_only%.mmd}
Expand Down

0 comments on commit 1e3595a

Please sign in to comment.