Skip to content

Commit

Permalink
工作流测试
Browse files Browse the repository at this point in the history
  • Loading branch information
ylsdamxssjxxdd committed Apr 23, 2024
1 parent b84b549 commit d3003c9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ jobs:
# 获取当前tag的版本
- name: Get version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
shell: pwsh
run: |
tag = "{{ github.ref }}"
version = tag -replace "refs/tags/", ""
echo "::set-output name=VERSION::$version"
# 从该tag打上一个release标签(这里会output一些参数 后面才能使用)
- name: Create Release
Expand Down

0 comments on commit d3003c9

Please sign in to comment.