From a6af1e9899276222818c5a04ccea9e2afbea3eb1 Mon Sep 17 00:00:00 2001 From: Hans-Chrstian Date: Thu, 20 Jun 2024 14:16:07 +0200 Subject: [PATCH] ci: Align CI/CD pipeline with what we have in oss-project-template. --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ .github/workflows/release.yml | 23 +++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 .github/workflows/main.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..72a5043 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +# SPDX-FileCopyrightText: 2024 Stichting Health-RI +# +# SPDX-License-Identifier: Apache-2.0 + +name: Run main workflow on + +on: + workflow_run: + workflows: ["Run Tests"] + branches: [main] + types: + - completed + +jobs: + ort: + strategy: + fail-fast: false + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: oss-review-toolkit/ort-ci-github-action@7f23c1f8d169dad430e41df223d3b8409c7a156e + with: + allow-dynamic-versions: "true" + fail-on: "issues" + run: "cache-dependencies,cache-scan-results,labels,analyzer,evaluator,advisor,reporter,upload-results" \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..0cd0233 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,23 @@ +# SPDX-FileCopyrightText: 2024 Stichting Health-RI +# +# SPDX-License-Identifier: Apache-2.0 + +name: Publish Release + +on: + push: + tags: + - "v*" + +jobs: + ort: + strategy: + fail-fast: false + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: oss-review-toolkit/ort-ci-github-action@7f23c1f8d169dad430e41df223d3b8409c7a156e + with: + allow-dynamic-versions: "true" + fail-on: "issues" + run: "cache-dependencies,cache-scan-results,labels,analyzer,evaluator,advisor,reporter,upload-results" \ No newline at end of file