mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-08 12:58:11 +08:00
fix: 修改配置
This commit is contained in:
parent
788ee21e74
commit
c162cdecdc
12
.github/workflows/clear.yml
vendored
12
.github/workflows/clear.yml
vendored
@ -18,12 +18,8 @@ jobs:
|
|||||||
- name: Install PyGithub
|
- name: Install PyGithub
|
||||||
run: pip install PyGithub
|
run: pip install PyGithub
|
||||||
|
|
||||||
- name: Delete all GitHub tags
|
- name: Delete tags and releases
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
# 获取所有 tag 的列表
|
python .github/delete_tags_and_releases.py
|
||||||
TAGS=$(git ls-remote --tags origin | cut -f2 | cut -d'/' -f3)
|
|
||||||
|
|
||||||
# 循环遍历所有 tag 并删除
|
|
||||||
for TAG in $TAGS; do
|
|
||||||
curl -s -X DELETE "https://api.github.com/repos/${{ github.repository }}/git/refs/tags/$TAG" -H "Authorization: token ${{ secrets.TOKEN }}"
|
|
||||||
done
|
|
||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -45,7 +45,7 @@ jobs:
|
|||||||
|
|
||||||
# 如果没有倒数第二个标签,则输出为空字符串
|
# 如果没有倒数第二个标签,则输出为空字符串
|
||||||
if [[ -z "$SECOND_LATEST_TAG" ]]; then
|
if [[ -z "$SECOND_LATEST_TAG" ]]; then
|
||||||
echo "::set-output name=tag_cmd::"
|
echo "::set-output name=tag_cmd::-S master"
|
||||||
else
|
else
|
||||||
echo "::set-output name=tag_cmd::-S $SECOND_LATEST_TAG"
|
echo "::set-output name=tag_cmd::-S $SECOND_LATEST_TAG"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user