Skip to content

Commit 51566de

Browse files
authored
Merge branch 'main' into test-engineio-mocking
2 parents 31e85e0 + f486c7a commit 51566de

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

.github/workflows/release.yml

-39
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,6 @@ on:
33
workflow_dispatch:
44

55
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-
uses: andymckay/[email protected]
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-
456
publish:
467
runs-on: ubuntu-latest
478
needs:

0 commit comments

Comments
 (0)