Skip to content

Commit 230f355

Browse files
committed
* Github Action: 统一使用GITHUB_TOKEN
+ Github Action: 支持覆盖Release草稿 Fix push task
1 parent 548cbd3 commit 230f355

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/android.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ jobs:
5757
- name: Echo release version from Env variable
5858
run: |
5959
echo "${{ env.release_version }}"
60-
- name: Release
60+
- name: Delete drafts
61+
uses: hugo19941994/delete-draft-releases@v1.0.0
62+
env:
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
- name: Release draft
6165
uses: softprops/action-gh-release@v1
6266
with:
6367
draft: true
@@ -66,4 +70,4 @@ jobs:
6670
files: |
6771
app/build/outputs/apk/release/*.apk
6872
riru/build/release/*.zip
69-
body: "https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}"
73+
body: "[Github Action](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}})"

0 commit comments

Comments
 (0)