Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jherbel committed Nov 8, 2023
1 parent 60e01c1 commit 62d2592
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 23 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: CI

on: [push, pull_request]
on:
workflow_call: {}

jobs:
ci:
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/rcc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
name: "RCC"

on:
push:
paths:
- .github/workflows/rcc.yaml
pull_request:
paths:
- .github/workflows/rcc.yaml
workflow_call: {}

jobs:
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/robotmk.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
---
name: "Robotmk"

on:
push:
paths:
- .github/workflows/robotmk.yaml
pull_request:
paths:
- .github/workflows/robotmk.yaml
workflow_call: {}

jobs:
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/run.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 62d2592

Please sign in to comment.