Skip to content

Commit

Permalink
Amending README with example on how to consider only changed UML files
Browse files Browse the repository at this point in the history
  • Loading branch information
madchap committed Apr 9, 2020
1 parent cf9d5c5 commit 01a3111
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,18 @@ jobs:
UML_FILES: "diagrams/*.puml"
steps:
- name: Checkout Source
uses: actions/checkout@v2
- name: Checkout Master Branch
run: git checkout master
uses: actions/checkout@v1
- name: Generate SVG Diagrams
uses: cloudbees/plantuml-github-action@master
with:
args: -v -tsvg $UML_FILES
- name: Get changed UML files
id: getfile
run: |
echo "::set-output name=files::$(git diff-tree -r --no-commit-id --name-only ${{ github.sha }} | grep ${{ env.UML_FILES }} | xargs)"
- name: UML files considered echo output
run: |
echo ${{ steps.getfile.outputs.files }}
- name: Generate PNG Diagrams
uses: cloudbees/plantuml-github-action@master
with:
Expand Down

0 comments on commit 01a3111

Please sign in to comment.