Skip to content

Merge pull request #241 from FraunhoferISST/docs/incorporateArchitect… #5

Merge pull request #241 from FraunhoferISST/docs/incorporateArchitect…

Merge pull request #241 from FraunhoferISST/docs/incorporateArchitect… #5

###############################################################
# Copyright (c) 2023 Contributors to the Eclipse Foundation
# Copyright (c) 2023 Volkswagen AG
# Copyright (c) 2023 Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V.
# (represented by Fraunhofer ISST)
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
###############################################################
---
name: "Render static puml files"
# Trigger as you want here in example each time a PlantUML file was updated on main branch
on:
push:
branches:
- 'main'
paths:
- '**/*.puml'
workflow_dispatch:
# Trigger manually
jobs:
render-images:
uses: eclipse-tractusx/sig-infra/.github/workflows/reusable-generate-puml-svg.yaml@main
store-images:
runs-on: ubuntu-latest
# 2nd job needs to wait for first job to finish
needs: render-images
steps:
- name: checkout source repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: download generated svg file from job before
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3
id: download
with:
name: artifacts
path: ${{ github.workspace }}
# now you can handle the files in your desired way