From 283f0c95ff98976ca0b19ad0832ea40ac8949331 Mon Sep 17 00:00:00 2001 From: Shakar <5h4k4r.b4kr@gmail.com> Date: Wed, 13 Sep 2023 14:58:13 +0300 Subject: [PATCH] Code cleanup Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com> --- .github/workflows/main.yaml | 2 -- action.yml | 5 ----- index.js | 4 ---- 3 files changed, 11 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 750b6f2..2e82159 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -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 }} diff --git a/action.yml b/action.yml index a398881..5bd0eb1 100644 --- a/action.yml +++ b/action.yml @@ -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 diff --git a/index.js b/index.js index 252ed70..adfe235 100644 --- a/index.js +++ b/index.js @@ -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)