File tree 1 file changed +0
-39
lines changed
1 file changed +0
-39
lines changed Original file line number Diff line number Diff line change 3
3
workflow_dispatch :
4
4
5
5
jobs :
6
- git-tag :
7
- runs-on : ubuntu-latest
8
- steps :
9
- - uses : dtolnay/rust-toolchain@stable
10
- with :
11
- components : rustfmt, clippy
12
-
13
- - name : Checkout
14
- uses : actions/checkout@v4
15
-
16
- - name : Get releasing version
17
- working-directory : .
18
- run : |
19
- NEXT_VERSION=$(sed -nE 's/^\s*version = "(.*?)"/\1/p' Cargo.toml) >> $GITHUB_ENV
20
- echo NEXT_VERSION=$NEXT_VERSION >> $GITHUB_ENV
21
- echo $NEXT_VERSION
22
-
23
- - name : Check published version
24
- run : |
25
- PREV_VERSION=$(cargo search socketioxide --limit 1 | sed -nE 's/^[^"]*"//; s/".*//1p' -)
26
- echo PREV_VERSION=$PREV_VERSION >> $GITHUB_ENV
27
- echo $PREV_VERSION
28
-
29
- - name : Cancel run
30
- if : env.NEXT_VERSION == env.PREV_VERSION
31
-
32
-
33
- - name : Auto tag latest version
34
- uses : bullrich/commit-autotag@main
35
- if : env.NEXT_VERSION != env.PREV_VERSION
36
- env :
37
- GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
38
- with :
39
- strategy : regex
40
- root : Cargo.toml
41
- regex_pattern : " version\\ s*=\\ s*\" ([0-9\\ .]+)\" "
42
- tag_prefix : " v"
43
- version : " ${{ env.NEXT_VERSION }}"
44
-
45
6
publish :
46
7
runs-on : ubuntu-latest
47
8
needs :
You can’t perform that action at this time.
0 commit comments