Skip to content

Commit

Permalink
feat: add test file
Browse files Browse the repository at this point in the history
Signed-off-by: Xinwei Xiong(cubxxw-openim) <[email protected]>
  • Loading branch information
cubxxw committed Jul 17, 2023
1 parent 99b26b9 commit 054bddc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/create-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ name: Create Release Branch

on:
push:
branches:
- main
tags:
- 'v*' # 监听以 'v' 开头的 tag
- 'v*'

jobs:
create_release_branch:
Expand All @@ -19,10 +21,10 @@ jobs:

- name: Create release branch
run: |
# 获取当前推送的 tag
# Gets the currently pushed tag
TAG_NAME=$(echo "${GITHUB_REF}" | sed -e 's,.*/\(.*\),\1,')
# 检查 tag 格式是否符合预期
# Check whether the tag format meets expectations
if [[ "${TAG_NAME}" =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
MAJOR_VERSION=${BASH_REMATCH[1]}
MINOR_VERSION=${BASH_REMATCH[2]}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ jobs:
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: |
./dist/*.deb
./dist/*.rpm
./dist/*.apk
./_output/dist/*.deb
./_output/dist/*.rpm
./_output/dist/*.apk
key: ${{ github.ref }}
- uses: sigstore/[email protected]
- uses: anchore/sbom-action/[email protected]
Expand Down

0 comments on commit 054bddc

Please sign in to comment.