Skip to content

Commit

Permalink
chore: update readme and format yml
Browse files Browse the repository at this point in the history
Signed-off-by: neil <msg@nancode.cn>
  • Loading branch information
nanzm committed May 26, 2023
1 parent ca61d45 commit 887e4db
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ Get the time in the specified time zone
## Example usage

```yaml
- name: Get Time
id: time
uses: boredland/get-time-action@master
with:
timeZone: UTC+8
format: 'YYYY-MM-DD-HH-mm-ss'
- name: Usage
env:
TIME: "${{ steps.time.outputs.time }}"
run: |
echo $TIME
steps:
- name: Get Time
id: time
uses: nanzm/get-time-action@master
with:
timeZone: UTC+8
format: 'YYYY-MM-DD-HH-mm-ss'
- name: Usage
env:
TIME: "${{ steps.time.outputs.time }}"
run: |
echo $TIME
```
## Inputs
Expand Down
16 changes: 8 additions & 8 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: 'Get Timestamp Action'
description: 'Get the time in the specified time zone'
author: 'boredland'
name: "Get Timestamp Action"
description: "Get the time in the specified time zone"
author: "boredland"
branding:
icon: arrow-right-circle
color: gray-dark
inputs:
timeZone:
description: 'linux time zone'
description: "linux time zone"
required: false
default: 'UTC'
default: "UTC"
format:
description: 'timestamp format'
description: "timestamp format"
required: false
default: 'YYYY-MM-DD HH:mm:ss'
default: "YYYY-MM-DD HH:mm:ss"
outputs:
time:
description: 'current time'
description: "current time"
value: ${{ steps.time.outputs.value }}
runs:
using: "composite"
Expand Down

0 comments on commit 887e4db

Please sign in to comment.