Skip to content

Commit

Permalink
chore(action): add timestamp
Browse files Browse the repository at this point in the history
add timestamp

Signed-off-by: kovacs <[email protected]>
  • Loading branch information
mritd committed Nov 1, 2023
1 parent be71338 commit 1e1fb35
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,13 @@ jobs:
- name: Build TPClash
shell: bash
run: task
- name: Get current date
id: date
run: |
export TZ='Asia/Shanghai'
echo "::set-output name=date::$(date '+%Y-%m-%d-%H-%M-%S')"
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: TPClash-${{ github.run_number }}-${{ steps.timestamp.outputs.timestamp }}
name: TPClash-${{ github.run_number }}-${{ steps.date.outputs.date }}
path: build

0 comments on commit 1e1fb35

Please sign in to comment.