File tree Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments