Code cleanup

Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com>
This commit is contained in:
Shakar 2023-09-13 14:58:13 +03:00
parent 34a9746f3d
commit 283f0c95ff
No known key found for this signature in database
GPG Key ID: DA55A26823AE3C28
3 changed files with 0 additions and 11 deletions

View File

@ -24,10 +24,8 @@ jobs:
uses: ./
id: hello
with:
who-to-greet: "John"
label: ${{ github.event.label.name }}
- name: Get the output time
run: |
echo "The time was ${{ steps.hello.outputs.time }}"
echo The label was ${{ steps.hello.outputs.label }}

View File

@ -1,11 +1,6 @@
name: "Hello World"
description: "Greet someone and record the time"
inputs:
who-to-greet: # id of input
description: "Who to greet"
required: true
default: "World"
label:
description: "Optional label"
required: false

View File

@ -3,14 +3,10 @@ const github = require('@actions/github');
try {
const nameToGreet = core.getInput('who-to-greet');
const label = core.getInput('label');
console.log(`Label: ${label}`)
console.log(`Hello ${nameToGreet}!`);
const time = (new Date()).toTimeString();
core.setOutput("label", label);
core.setOutput("time", time);
const payload = JSON.stringify(github.context.payload, undefined, 2)