Skip to content

Commit 952f9ee

Browse files
committed
🐛 修复漏洞
1 parent 0dce7c4 commit 952f9ee

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

.github/workflows/build_and_publish.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ jobs:
1010
release:
1111
runs-on: ubuntu-latest
1212
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
ref: master
16+
- name: Write version
17+
run: echo "${GITHUB_REF#refs/*/}" > VERSION
18+
- name: Commit and push
19+
run: |
20+
git add VERSION
21+
git config --global user.name "github-actions[bot]"
22+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
23+
git commit -a -m ":sparkles: 更新 VERSION"
24+
git push
1325
- name: Create Release
1426
id: create_release
1527
uses: actions/create-release@v1
@@ -52,18 +64,3 @@ jobs:
5264
registry.cn-hangzhou.aliyuncs.com/silianz/python-openbmclapi:latest
5365
registry.cn-hangzhou.aliyuncs.com/silianz/python-openbmclapi:${{env.RELEASE_VERSION}}
5466
platforms: linux/amd64, linux/arm64
55-
update:
56-
runs-on: ubuntu-latest
57-
steps:
58-
- uses: actions/checkout@v4
59-
with:
60-
ref: master
61-
- name: Write version
62-
run: echo "${GITHUB_REF#refs/*/}" > VERSION
63-
- name: Commit and push
64-
run: |
65-
git add VERSION
66-
git config --global user.name "github-actions[bot]"
67-
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
68-
git commit -a -m ":sparkles: 更新 VERSION"
69-
git push

0 commit comments

Comments
 (0)