Hello world docker action 2 #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/actions/hello-world-docker-action | |
name: Hello world docker action 2 | |
on: | |
workflow_dispatch: | |
inputs: | |
who-to-greet: | |
description: Who to greet in the log | |
required: true | |
default: 'World' | |
type: string | |
jobs: | |
say-hello-1: | |
name: Say Hello 1 | |
runs-on: ubuntu-latest | |
environment: EnvironmentA | |
steps: | |
- name: Print to Log 1 | |
id: print-to-log-1 | |
uses: actions/hello-world-docker-action@main | |
with: | |
who-to-greet: ${{ inputs.who-to-greet }} | |
say-hello-2: | |
name: Say Hello 2 | |
needs: say-hello-1 | |
if: success() | |
runs-on: ubuntu-latest | |
environment: EnvironmentA | |
steps: | |
- name: Print to Log 2 | |
id: print-to-log-2 | |
uses: actions/hello-world-docker-action@main | |
with: | |
who-to-greet: ${{ inputs.who-to-greet }} |