From ff40665e64ab37bdd62b0136cc6db7afffc4a9aa Mon Sep 17 00:00:00 2001 From: Ankio Date: Sun, 10 Mar 2024 17:12:21 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E8=84=9A=E6=9C=AC=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 7 ++++--- .github/workflows/upload.py | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b32fde3..378f293 100755 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,9 +35,10 @@ jobs: configuration: ".github/workflows/configuration.json" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Generate Tag Name - id: tag_name - run: echo "TAG_VERSION_NAME=v${{ env.VERSION_NAME }}" >> $GITHUB_ENV + - name: Extract tag name + id: extract_tag + run: echo "TAG_VERSION_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + - name: Upload Apks id: upload_apk run: pip install requests markdown && python .github/workflows/upload.py diff --git a/.github/workflows/upload.py b/.github/workflows/upload.py index 9c54a68..74890d4 100644 --- a/.github/workflows/upload.py +++ b/.github/workflows/upload.py @@ -3,6 +3,7 @@ import requests import markdown import json +import time import os import re # 登录