From 265ee4af3559824957cfd9c91f6c5c9a6ed3c686 Mon Sep 17 00:00:00 2001 From: Dragan Ivanovic Date: Thu, 14 Jul 2022 14:48:35 +0200 Subject: [PATCH 1/2] Create plantuml.yml --- .github/plantuml.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/plantuml.yml diff --git a/.github/plantuml.yml b/.github/plantuml.yml new file mode 100644 index 0000000..2ca759e --- /dev/null +++ b/.github/plantuml.yml @@ -0,0 +1,30 @@ +name: generate plantuml +on: push +jobs: + generate_plantuml: + runs-on: ubuntu-latest + name: plantuml + steps: + - name: Install Dependencies + run: | + sudo apt-get install graphviz + - name: Checkout Repository + uses: actions/checkout@v2 + - name: Clone CERIF-Core + run: git clone https://github.com/EuroCRIS/CERIF-Core.git ../CERIF-Core + - name: Clone CERIF-ScholarlyPublicationModule + run: git clone https://github.com/EuroCRIS/CERIF-ScholarlyPublicationModule.git ../CERIF-ScholarlyPublicationModule + - name: Process Diagrams + run: ../CERIF-Core/tools/generate-diagrams.sh + - name: Display Diagrams + run: pwd && ls diagrams + - name: Commit Diagrams + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add . + git commit -m ":rocket: adding generated diagrams" || exit 0 + - name: Push Diagrams + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} From fc24311cddfe16d3b8f8bc2ba707feb1f5439f31 Mon Sep 17 00:00:00 2001 From: Dragan Ivanovic Date: Thu, 14 Jul 2022 14:51:39 +0200 Subject: [PATCH 2/2] Update plantuml.yml --- .github/plantuml.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/plantuml.yml b/.github/plantuml.yml index 2ca759e..a38a261 100644 --- a/.github/plantuml.yml +++ b/.github/plantuml.yml @@ -13,7 +13,7 @@ jobs: - name: Clone CERIF-Core run: git clone https://github.com/EuroCRIS/CERIF-Core.git ../CERIF-Core - name: Clone CERIF-ScholarlyPublicationModule - run: git clone https://github.com/EuroCRIS/CERIF-ScholarlyPublicationModule.git ../CERIF-ScholarlyPublicationModule + run: git clone https://github.com/EuroCRIS/CERIF-ScholarlyPublicationsModule.git ../CERIF-ScholarlyPublicationsModule - name: Process Diagrams run: ../CERIF-Core/tools/generate-diagrams.sh - name: Display Diagrams