Skip to content

Update job-dependencies.yml #2

Update job-dependencies.yml

Update job-dependencies.yml #2

name: 05-2. Hello World Composite
on:
pull_request:
branches: [main]
workflow_dispatch:
jobs:
hello_world_job1:
runs-on: ubuntu-latest
name: A job1 to say hello
steps:
- id: hello-world
uses: githubabcs/hello-world-composite-action@main
with:
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