diff --git a/README.md b/README.md index 7199807..045f28a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/action.yml b/action.yml index c6e0c6a..3195555 100644 --- a/action.yml +++ b/action.yml @@ -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"