CI Build for Docker Action #2
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
name: CI Build for Docker Action | |
on: | |
push: | |
branches: [main] | |
paths: [hello-world/**] | |
workflow_dispatch: | |
inputs: | |
name: | |
type: choice | |
description: Who to greet ? | |
options: | |
- hedi | |
- mona lisa | |
jobs: | |
test-action: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Run action | |
id: hello-world | |
uses: ./hello-world | |
with: | |
who-to-greet: "Hedi" | |
- name: Output time set in the container | |
run: echo "The time was ${{ steps.hello-world.outputs.time }}" |