Skip to content

Commit

Permalink
simplest possible run usage wtf
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Florentine <[email protected]>
  • Loading branch information
jflo committed Dec 5, 2023
1 parent c879cd9 commit 9251098
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/callee.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: callee
on:
workflow_run:
workflows: [ "caller" ]
types: [ "completed" ]

jobs:
echo:
runs-on: ubuntu-22.04
steps:
- run: echo called
8 changes: 8 additions & 0 deletions .github/workflows/caller.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: caller
on: pull_request

jobs:
echo:
runs-on: ubuntu-22.04
steps:
- run: echo calling
6 changes: 2 additions & 4 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: "checks"

on:
push:
branches:
- main
pull_request:
workflow_call:


jobs:
lint:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: unit-tests
on:
workflow_run:
workflows: [ "checks" ]
types: [ completed ]
types: [ "completed" ]

env:
GRADLE_OPTS: "-Xmx6g -Dorg.gradle.daemon=false"
Expand Down

0 comments on commit 9251098

Please sign in to comment.