From 62d2592ec3190ec593e1e6e5844171424123f59c Mon Sep 17 00:00:00 2001 From: Joerg Herbel Date: Wed, 8 Nov 2023 16:58:07 +0100 Subject: [PATCH] test --- .github/workflows/ci.yaml | 3 ++- .github/workflows/rcc.yaml | 6 ----- .github/workflows/release.yaml | 12 ++-------- .github/workflows/robotmk.yaml | 7 +----- .github/workflows/run.yaml | 41 ++++++++++++++++++++++++++++++++++ 5 files changed, 46 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/run.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bc62670f..b30c0e76 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,6 +1,7 @@ name: CI -on: [push, pull_request] +on: + workflow_call: {} jobs: ci: diff --git a/.github/workflows/rcc.yaml b/.github/workflows/rcc.yaml index 9d8ec6f4..5ccae8c9 100644 --- a/.github/workflows/rcc.yaml +++ b/.github/workflows/rcc.yaml @@ -2,12 +2,6 @@ name: "RCC" on: - push: - paths: - - .github/workflows/rcc.yaml - pull_request: - paths: - - .github/workflows/rcc.yaml workflow_call: {} jobs: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a21059f5..e92098c6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,16 +1,8 @@ --- name: "Upload all artifacts" + on: - push: - paths: - - .github/workflows/release.yaml - - .github/workflows/rcc.yaml - - .github/workflows/robotmk.yaml - pull_request: - paths: - - .github/workflows/release.yaml - - .github/workflows/rcc.yaml - - .github/workflows/robotmk.yaml + workflow_call: {} jobs: build_rcc: diff --git a/.github/workflows/robotmk.yaml b/.github/workflows/robotmk.yaml index 1b7ce68f..3c672daf 100644 --- a/.github/workflows/robotmk.yaml +++ b/.github/workflows/robotmk.yaml @@ -1,12 +1,7 @@ --- name: "Robotmk" + on: - push: - paths: - - .github/workflows/robotmk.yaml - pull_request: - paths: - - .github/workflows/robotmk.yaml workflow_call: {} jobs: diff --git a/.github/workflows/run.yaml b/.github/workflows/run.yaml new file mode 100644 index 00000000..e58940e0 --- /dev/null +++ b/.github/workflows/run.yaml @@ -0,0 +1,41 @@ +--- +name: "Run" + +on: + push: + tags-ignore: + "**" # Do not run in case of a release + pull_request: + +jobs: + check_changes: + if: always() + runs-on: ubuntu-latest + outputs: + robotmk_yaml: ${{ steps.filter.outputs.robotmk_yaml }} + rcc_yaml: ${{ steps.filter.outputs.rcc_yaml }} + steps: + - uses: actions/checkout@v4 + - uses: dorny/paths-filter@v2 + id: filter + with: + filters: | + robotmk_yaml: + - '.github/workflows/robotmk.yaml' + rcc_yaml: + - '.github/workflows/rcc.yaml' + ci: + if: always() + uses: ./.github/workflows/ci.yaml + + build_robotmk: + needs: + - check_changes + if: ${{ needs.check_changes.outputs.robotmk_yaml == 'true' }} + uses: ./.github/workflows/robotmk.yaml + + rcc: + needs: + - check_changes + if: ${{ needs.check_changes.outputs.rcc_yaml == 'true' }} + uses: ./.github/workflows/rcc.yaml