From 669b57e3b0114446e66dc03ea69fadd3d8069f7b Mon Sep 17 00:00:00 2001 From: gaboolic <23441099@qq.com> Date: Sat, 20 Jul 2024 21:25:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9release=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e746ab7..4162e352 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,13 +22,6 @@ jobs: run: | python others/program/release/generate_dict_for_fcitx5.py # 运行你的 Python 脚本 - - name: Get upload URL - id: upload-url - uses: actions/github-script@v6 - with: - script: | - return context.payload.release.upload_url.replace('{?name,label}', ''); - - name: Check if file exists run: | if [ -f "./dict_for_fcitx5.txt" ]; then @@ -37,7 +30,6 @@ jobs: echo "File does not exist." fi - - name: Upload Release Asset uses: actions/upload-release-asset@v1 env: @@ -46,4 +38,4 @@ jobs: asset_path: dict_for_fcitx5.txt asset_name: dict_for_fcitx5.txt asset_content_type: text/plain - upload_url: ${{ steps.upload-url.outputs.result }} + upload_url: ${{ github.event.release.upload_url }}