Skip to content

Commit efb9457

Browse files
committed
fix release ci
1 parent 833d674 commit efb9457

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- "v*"
77

88
jobs:
99
release:
@@ -19,19 +19,19 @@ jobs:
1919
run: |
2020
git config --global user.name "release"
2121
git config --global user.email "[email protected]"
22-
22+
2323
- name: rust version
2424
run: rustc -V
2525

2626
- name: extract branch from tag
2727
id: extract_branch
2828
run: |
29-
BRANCH=$( git log -1 --format='%D' ${{ github.ref_name }} | grep -oP 'origin/\K.*' )
29+
BRANCH=$( git log -1 --format='%D' ${{ github.ref_name }} | grep -oP 'origin/\K\w+' | head -n 1 )
3030
echo "BRANCH=$BRANCH" >> $GITHUB_OUTPUT
3131
3232
- name: print branch
3333
run: echo ${{ steps.extract_branch.outputs.BRANCH }}
34-
34+
3535
- name: switch to branch
3636
run: git switch ${{ steps.extract_branch.outputs.BRANCH }}
3737

@@ -41,7 +41,7 @@ jobs:
4141
./scripts/build_relib_crate.sh
4242
git add .
4343
git commit --allow-empty -m "relib files"
44-
44+
4545
- name: cargo login
4646
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}
4747

0 commit comments

Comments
 (0)