mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-07 04:28:11 +08:00
fix: 调整 Github 工具
This commit is contained in:
parent
21df7baea4
commit
5bc95b7a8a
@ -15,7 +15,6 @@ def main():
|
||||
owner = os.getenv("GITHUB_REPOSITORY").split('/')[0] # 获取仓库所有者
|
||||
g = Github(token)
|
||||
repo = g.get_repo(f"{owner}/{repo_name}")
|
||||
|
||||
delete_all_releases(repo)
|
||||
|
||||
if __name__ == "__main__":
|
||||
6
.github/release.sh
vendored
6
.github/release.sh
vendored
@ -11,12 +11,6 @@ CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||
VERSION=$1
|
||||
BASEPATH=$(cd `dirname $0`; cd ../plugin/; pwd)
|
||||
|
||||
# Always prepend with "v"
|
||||
#if [[ $VERSION != v* ]]
|
||||
#then
|
||||
# VERSION="v$VERSION"
|
||||
#fi
|
||||
|
||||
if [ -z $2 ] ; then
|
||||
repos=$(ls $BASEPATH)
|
||||
else
|
||||
|
||||
6
.github/workflows/clear.yml
vendored
6
.github/workflows/clear.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: Clear Release
|
||||
name: Clear Releases
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
@ -20,6 +20,6 @@ jobs:
|
||||
|
||||
- name: Delete tags and releases
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
python .github/clear-releases.py
|
||||
python .github/clear-github-releases.py
|
||||
4
.github/workflows/split.yml
vendored
4
.github/workflows/split.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: Split Repos
|
||||
name: Split Repositorys
|
||||
|
||||
on: [ workflow_dispatch ]
|
||||
|
||||
@ -13,12 +13,14 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Private Key
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
echo "StrictHostKeyChecking no" >> ~/.ssh/config
|
||||
|
||||
- name: Split And Push
|
||||
run: |
|
||||
git config pull.rebase true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user