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..ac1a9e34 --- /dev/null +++ b/.github/workflows/run.yaml @@ -0,0 +1,32 @@ +--- +name: "Run" + +on: [push, pull_request] + +jobs: + ci: + if: always() + uses: ./.github/workflows/ci.yaml + + path_checking: + if: always() + runs-on: ubuntu-latest + outputs: + path_filters: ${{ steps.filter.outputs }} + steps: + - uses: actions/checkout@v4 + + - uses: dorny/paths-filter@v2 + id: filter + with: + filters: | + robotmk: + - .github/workflows/robotmk.yaml + rcc: + - .github/workflows/rcc.yaml + + robotmk: + needs: + - path_checking + if: needs.path_checking.path_filters.robotmk == true + uses: ./.github/workflows/robotmk.yaml