Skip to content

Commit

Permalink
chore: update input
Browse files Browse the repository at this point in the history
  • Loading branch information
FabiLo22 committed Oct 15, 2024
1 parent 803dcb2 commit 41ad8b6
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 13 deletions.
5 changes: 2 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ branding:

# Define your inputs here.
inputs:
milliseconds:
description: 'Your input description here'
commit:
description: 'Commit Sha to be deployed'
required: true
default: '1000'

# Define your outputs here.
outputs:
Expand Down
6 changes: 3 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "typescript-action",
"description": "Givve Automatic Deployment",
"version": "v0.0.1",
"version": "v0.0.3",
"author": "PL Gutscheinsysteme GmbH",
"private": true,
"homepage": "https://github.com/actions/typescript-action",
Expand Down
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import { wait } from './wait'
*/
export async function run(): Promise<void> {
try {
const ms: string = core.getInput('milliseconds')
const commit: string = core.getInput('commit')

// Debug logs are only output if the `ACTIONS_STEP_DEBUG` secret is true
core.debug(`Waiting ${ms} milliseconds ...`)
core.debug(`${commit} needs to be deployed ...`)

// Log the current timestamp, wait, then log the new timestamp
core.debug(new Date().toTimeString())
await wait(parseInt(ms, 10))
await wait(10000)
core.debug(new Date().toTimeString())

// Set outputs for other workflow steps to use
Expand Down

0 comments on commit 41ad8b6

Please sign in to comment.