Skip to content

Commit

Permalink
Update hello-world-composite.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioelumir authored Sep 26, 2024
1 parent ac0a535 commit c6f772d
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/hello-world-composite.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: 05-2. Hello World Composite

on:
[workflow_dispatch]
on:
pull_request:
branches: [main]
workflow_dispatch:

jobs:
hello_world_job1:
Expand All @@ -14,3 +16,14 @@ jobs:
who-to-greet: 'Hello from GH ABCs'
- run: echo random-number ${{ steps.hello-world.outputs.random-number }}
shell: bash
hello_world_job2:
runs-on: ubuntu-latest
name: A job2 to say hello
steps:
- uses: actions/checkout@v4
- id: hello-world
uses: ./.github/actions/hello-world-composite-action
with:
who-to-greet: 'Mona the Octocat from composite action'
- run: echo random-number from composite action ${{ steps.hello-world.outputs.random-number }}
shell: bash

0 comments on commit c6f772d

Please sign in to comment.