Update main.yaml

Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com>
This commit is contained in:
Shakar 2023-09-11 10:50:54 +03:00
parent eabe1dc87e
commit 15021abaf4
No known key found for this signature in database
GPG Key ID: DA55A26823AE3C28

View File

@ -1,20 +1,19 @@
name: Test Action
on: [push]
jobs:
hello-world-job:
hello_world_job:
runs-on: ubuntu-latest
name: A job to say hello
steps:
# To use this repository's private action,
# you must check out the repository
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3
- name: Hello world action step
uses: ./
uses: ./ # Uses an action in the root directory
id: hello
with:
who-to-greet: "John"
- name: Print the greeting's output
run: echo "The greeting was ${{ steps.hello.outputs.greeting }}"
who-to-greet: "Mona the Octocat"
# Use the output from the `hello` step
- name: Get the output time
run: echo "The time was ${{ steps.hello.outputs.time }}"