From ec434a41217015bd443466230995c11937b4d90b Mon Sep 17 00:00:00 2001 From: Rufei Zhou Date: Mon, 7 Apr 2025 02:03:34 -0700 Subject: [PATCH] generate tag from time --- .gitea/workflows/refresh.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/refresh.yaml b/.gitea/workflows/refresh.yaml index bc06acd..612f18a 100755 --- a/.gitea/workflows/refresh.yaml +++ b/.gitea/workflows/refresh.yaml @@ -48,6 +48,9 @@ jobs: - name: Get current time id: time run: echo "::set-output name=time::$(TZ='America/Los_Angeles' date +'%Y-%m-%d %H:%M %p')" + - name: Get time tag + id: time_tag + run: echo "::set-output name=tag::$(TZ='America/Los_Angeles' date +'%Y-%m-%d_%H%M_%p')" #---------------------------------------------- # install and run the project #---------------------------------------------- @@ -75,6 +78,6 @@ jobs: with: name: ${{ steps.time.outputs.time }} md5sum: true - target_commitish: ${{ github.sha }} + tag_name: ${{ steps.time_tag.outputs.tag }} files: |- calendars.zip \ No newline at end of file