Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/run plantuml from own repo #5

Merged
merged 4 commits into from
May 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/plantuml.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: generate plantuml
on:
workflow_dispatch:
pull_request:
paths:
- "dist/index.js"
Expand Down Expand Up @@ -31,17 +32,17 @@ jobs:
docker run -d --name plantuml -p 8080:8080 plantuml/plantuml-server:jetty

echo TEST: Wait until plantuml server container is started
timeout 30 bash -c 'while [[ "$(curl -X GET -s -o /dev/null -w ''%{http_code}'' curl localhost:8080/svg/pStDuNBAJrBGjLDmpCbCJbMmKiX8JIp9ICv8JSxcSaZDIm6g0000)" != "200" ]]; do sleep 2; done' || false
timeout 30 bash -c 'while [[ "$(curl -X GET -s -o /dev/null -w ''%{http_code}'' localhost:8080/svg/pStDuNBAJrBGjLDmpCbCJbMmKiX8JIp9ICv8JSxcSaZDIm6g0000)" != "200" ]]; do sleep 2; done' || false
- name: plantuml
id: plantuml
uses: ./
uses: philips-forks/generate-plantuml-action@master
with:
path: example
plantuml-server-url: ${{ matrix.server-url }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Clean-up plantuml server
if: always() && ${{ matrix.run-container }}
if: ${{ matrix.run-container }}
run: |
docker stop plantuml
docker rm plantuml
1 change: 1 addition & 0 deletions example/sample.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ In this case, this action complements `@startgantt` and `@endgantt`.
```plantuml@gantt:md-sample-gantt
[Prototype design] lasts 15 days
[Test prototype] lasts 10 days
[Test prototype 2] lasts 20 days
```

![](./md-sample-gantt.svg)