From 9251098f0ab7e82a535c093d8fd1611fe6a66ae9 Mon Sep 17 00:00:00 2001 From: Justin Florentine Date: Tue, 5 Dec 2023 16:10:50 -0500 Subject: [PATCH] simplest possible run usage wtf Signed-off-by: Justin Florentine --- .github/workflows/callee.yml | 11 +++++++++++ .github/workflows/caller.yml | 8 ++++++++ .github/workflows/checks.yml | 6 ++---- .github/workflows/unit-tests.yml | 2 +- 4 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/callee.yml create mode 100644 .github/workflows/caller.yml 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"