diff --git a/.github/workflows/callee.yml b/.github/workflows/callee.yml new file mode 100644 index 00000000000..ef1fdb96dcb --- /dev/null +++ b/.github/workflows/callee.yml @@ -0,0 +1,11 @@ +name: callee +on: + workflow_run: + workflows: [ "caller" ] + types: [ "completed" ] + +jobs: + echo: + runs-on: ubuntu-22.04 + steps: + - run: echo called \ No newline at end of file diff --git a/.github/workflows/caller.yml b/.github/workflows/caller.yml new file mode 100644 index 00000000000..2679f879457 --- /dev/null +++ b/.github/workflows/caller.yml @@ -0,0 +1,8 @@ +name: caller +on: pull_request + +jobs: + echo: + runs-on: ubuntu-22.04 + steps: + - run: echo calling diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 7a44ec272e7..fed0f096070 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -1,10 +1,8 @@ name: "checks" on: - push: - branches: - - main - pull_request: + workflow_call: + jobs: lint: diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 9e0588ae463..3e309e08da1 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -2,7 +2,7 @@ name: unit-tests on: workflow_run: workflows: [ "checks" ] - types: [ completed ] + types: [ "completed" ] env: GRADLE_OPTS: "-Xmx6g -Dorg.gradle.daemon=false"