Skip to content

Commit 7b45204

Browse files
committed
ci: refine tag update
1 parent fa1896d commit 7b45204

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/build-alpha.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,23 @@ on:
1313
workflow_dispatch:
1414

1515
jobs:
16-
update-alpha-release:
16+
update-alpha-tag:
1717
runs-on: ubuntu-latest
1818
permissions:
1919
contents: write
2020
steps:
2121
- name: Checkout repository
2222
uses: actions/checkout@v4
23-
with:
24-
fetch-depth: 0 # 获取完整历史以便操作标签
2523

26-
- name: Delete existing alpha release
27-
run: |
28-
# 删除现有的alpha release和关联的tag
29-
echo "Deleting existing alpha release and tag..."
30-
gh release delete alpha --yes --cleanup-tag || echo "No existing alpha release found"
24+
- name: Update alpha tag
25+
uses: richardsimko/update-tag@v1
26+
with:
27+
tag_name: alpha
3128
env:
3229
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3430

3531
build-and-release:
36-
needs: update-alpha-release
32+
needs: update-alpha-tag
3733
permissions:
3834
contents: write
3935
strategy:

0 commit comments

Comments
 (0)