Skip to content

Commit 87d62f2

Browse files
committed
fix: fix ci
1 parent 276301f commit 87d62f2

File tree

6 files changed

+39
-6
lines changed

6 files changed

+39
-6
lines changed

.github/workflows/docker-image-amd64-en.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
tags:
66
- '*'
7-
- '!*-pro*'
87
workflow_dispatch:
98
inputs:
109
name:
@@ -21,6 +20,13 @@ jobs:
2120
- name: Check out the repo
2221
uses: actions/checkout@v3
2322

23+
- name: Check repository URL
24+
run: |
25+
REPO_URL=$(git config --get remote.origin.url)
26+
if [[ $REPO_URL == *"pro" ]]; then
27+
exit 1
28+
fi
29+
2430
- name: Save version info
2531
run: |
2632
git describe --tags > VERSION

.github/workflows/docker-image-amd64.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
tags:
66
- '*'
7-
- '!*-pro*'
87
workflow_dispatch:
98
inputs:
109
name:
@@ -21,6 +20,13 @@ jobs:
2120
- name: Check out the repo
2221
uses: actions/checkout@v3
2322

23+
- name: Check repository URL
24+
run: |
25+
REPO_URL=$(git config --get remote.origin.url)
26+
if [[ $REPO_URL == *"pro" ]]; then
27+
exit 1
28+
fi
29+
2430
- name: Save version info
2531
run: |
2632
git describe --tags > VERSION

.github/workflows/docker-image-arm64.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
tags:
66
- '*'
77
- '!*-alpha*'
8-
- '!*-pro*'
98
workflow_dispatch:
109
inputs:
1110
name:
@@ -22,6 +21,13 @@ jobs:
2221
- name: Check out the repo
2322
uses: actions/checkout@v3
2423

24+
- name: Check repository URL
25+
run: |
26+
REPO_URL=$(git config --get remote.origin.url)
27+
if [[ $REPO_URL == *"pro" ]]; then
28+
exit 1
29+
fi
30+
2531
- name: Save version info
2632
run: |
2733
git describe --tags > VERSION

.github/workflows/linux-release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
tags:
88
- '*'
99
- '!*-alpha*'
10-
- '!*-pro*'
1110
workflow_dispatch:
1211
inputs:
1312
name:
@@ -21,6 +20,12 @@ jobs:
2120
uses: actions/checkout@v3
2221
with:
2322
fetch-depth: 0
23+
- name: Check repository URL
24+
run: |
25+
REPO_URL=$(git config --get remote.origin.url)
26+
if [[ $REPO_URL == *"pro" ]]; then
27+
exit 1
28+
fi
2429
- uses: actions/setup-node@v3
2530
with:
2631
node-version: 16

.github/workflows/macos-release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
tags:
88
- '*'
99
- '!*-alpha*'
10-
- '!*-pro*'
1110
workflow_dispatch:
1211
inputs:
1312
name:
@@ -21,6 +20,12 @@ jobs:
2120
uses: actions/checkout@v3
2221
with:
2322
fetch-depth: 0
23+
- name: Check repository URL
24+
run: |
25+
REPO_URL=$(git config --get remote.origin.url)
26+
if [[ $REPO_URL == *"pro" ]]; then
27+
exit 1
28+
fi
2429
- uses: actions/setup-node@v3
2530
with:
2631
node-version: 16

.github/workflows/windows-release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
tags:
88
- '*'
99
- '!*-alpha*'
10-
- '!*-pro*'
1110
workflow_dispatch:
1211
inputs:
1312
name:
@@ -24,6 +23,12 @@ jobs:
2423
uses: actions/checkout@v3
2524
with:
2625
fetch-depth: 0
26+
- name: Check repository URL
27+
run: |
28+
REPO_URL=$(git config --get remote.origin.url)
29+
if [[ $REPO_URL == *"pro" ]]; then
30+
exit 1
31+
fi
2732
- uses: actions/setup-node@v3
2833
with:
2934
node-version: 16

0 commit comments

Comments
 (0)