Use example action

This commit is contained in:
Iain Sproat
2023-03-20 16:06:58 +00:00
parent 0eb31b2f6b
commit a148b30668
2 changed files with 19 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
on: [push]
jobs:
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@v3
- name: Hello world action step
uses: ./ # Uses an action in the root directory
id: hello
with:
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 }}"