diff --git a/.github/plantuml.yml b/.github/plantuml.yml new file mode 100644 index 0000000..a38a261 --- /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-ScholarlyPublicationsModule.git ../CERIF-ScholarlyPublicationsModule + - 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 }}