Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Squyres <jeff@squyres.com>
  • Loading branch information
jsquyres committed Mar 30, 2024
1 parent d168775 commit 35b28d9
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 24 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/jms-a.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/workflows/jms-b.yaml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/jms.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: jms top-level job

on: [ pull_request ]

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: hello there
run: echo hello world

run-all:
needs: [ build ]
uses: ./.github/workflows/reusable.yaml
with:
env_name: DO_THEM_ALL

run-spawn:
needs: [ build ]
uses: ./.github/workflows/reusable.yaml
with:
env_name: DO_THE_SPAWN

16 changes: 12 additions & 4 deletions .github/workflows/reusable.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Reusable workflow example
name: Reusable workflow testing

on:
workflow_call:
Expand All @@ -10,8 +10,16 @@ on:
jobs:
entrypoint:
runs-on: ubuntu-latest
env:
the_value: ${{ inputs.env_name }}
${{ inputs.env_name}}: 42
steps:
- name: say hello
run: echo hello world
- name: show the input
run: echo the input was ${{ inputs.env_name }}
run: |
echo hello world
echo the input was ${{ inputs.env_name }}
echo the env var was: $${{ inputs.env_name }}
cat >file.json <<EOF
${{ toJson(github) }}
EOF
echo cat file.json

0 comments on commit 35b28d9

Please sign in to comment.