|
| 1 | +############################################################### |
| 2 | +# Copyright (c) 2023 Contributors to the Eclipse Foundation |
| 3 | +# Copyright (c) 2023 Volkswagen AG |
| 4 | +# Copyright (c) 2023 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. |
| 5 | +# (represented by Fraunhofer ISST) |
| 6 | +# |
| 7 | +# See the NOTICE file(s) distributed with this work for additional |
| 8 | +# information regarding copyright ownership. |
| 9 | +# |
| 10 | +# This program and the accompanying materials are made available under the |
| 11 | +# terms of the Apache License, Version 2.0 which is available at |
| 12 | +# https://www.apache.org/licenses/LICENSE-2.0. |
| 13 | +# |
| 14 | +# Unless required by applicable law or agreed to in writing, software |
| 15 | +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 16 | +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 17 | +# License for the specific language governing permissions and limitations |
| 18 | +# under the License. |
| 19 | +# |
| 20 | +# SPDX-License-Identifier: Apache-2.0 |
| 21 | +############################################################### |
| 22 | +--- |
| 23 | + |
| 24 | +name: "Render static puml files" |
| 25 | +# Trigger as you want here in example each time a PlantUML file was updated on main branch |
| 26 | +on: |
| 27 | + push: |
| 28 | + branches: |
| 29 | + - 'main' |
| 30 | + paths: |
| 31 | + - '**/*.puml' |
| 32 | +jobs: |
| 33 | + render-images: |
| 34 | + uses: eclipse-tractusx/sig-infra/.github/workflows/reusable-generate-puml-svg.yml@main |
| 35 | + |
| 36 | + store-images: |
| 37 | + runs-on: ubuntu-latest |
| 38 | + # 2nd job needs to wait for first job to finish |
| 39 | + needs: render-images |
| 40 | + steps: |
| 41 | + - name: checkout source repo |
| 42 | + uses: actions/checkout@v3 |
| 43 | + - name: download generated svg file from job before |
| 44 | + uses: actions/download-artifact@v3 |
| 45 | + id: download |
| 46 | + with: |
| 47 | + name: artifacts |
| 48 | + path: ${{ github.workspace }} |
| 49 | + # now you can handle the files in your desired way |
0 commit comments