Skip to content

Commit 871f4b0

Browse files
committed
fix sed version in pull request
1 parent c398686 commit 871f4b0

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

.github/workflows/build_android.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ jobs:
2424
SIGN_KEY_PASS: ${{ secrets.SIGN_KEY_PASS }}
2525
SIGN_STORE_PASS: ${{ secrets.SIGN_STORE_PASS }}
2626
run: |
27-
sed -i -E 's/#define ONS_YURI_VERSION "(.+?)"/#define ONS_YURI_VERSION "${{ github.ref_name }}"/g' src/onsyuri/version.h
27+
if [ -z "$(echo ${{ github.ref_name }} | grep merge)" ]; then
28+
sed -i -E 's/#define ONS_YURI_VERSION "(.+?)"/#define ONS_YURI_VERSION "${{ github.ref_name }}"/g' src/onsyuri/version.h
29+
fi
2830
cd script
2931
bash ./cross_android.sh
3032
cd -

.github/workflows/build_linux.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ jobs:
5151
5252
- name: build onsyuri_${{ matrix.arch.suffix }}_linux
5353
run: |
54-
sed -i -E 's/#define ONS_YURI_VERSION "(.+?)"/#define ONS_YURI_VERSION "${{ github.ref_name }}"/g' src/onsyuri/version.h
54+
if [ -z "$(echo ${{ github.ref_name }} | grep merge)" ]; then
55+
sed -i -E 's/#define ONS_YURI_VERSION "(.+?)"/#define ONS_YURI_VERSION "${{ github.ref_name }}"/g' src/onsyuri/version.h
56+
fi
5557
cd script
5658
SKIP_PORTS=yes bash cross_linux${{ matrix.arch.suffix2 }}.sh
5759

.github/workflows/build_web.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ jobs:
4646

4747
- name: build onsyuri_web
4848
run: |
49-
sed -i -E 's/#define ONS_YURI_VERSION "(.+?)"/#define ONS_YURI_VERSION "${{ github.ref_name }}"/g' src/onsyuri/version.h
49+
if [ -z "$(echo ${{ github.ref_name }} | grep merge)" ]; then
50+
sed -i -E 's/#define ONS_YURI_VERSION "(.+?)"/#define ONS_YURI_VERSION "${{ github.ref_name }}"/g' src/onsyuri/version.h
51+
fi
5052
cd script
5153
EMCSDK=${{ env.EMCSDK }} bash ./cross_web.sh
5254

.github/workflows/build_win.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ jobs:
4949

5050
- name: build onsyuri_${{ matrix.arch.suffix }}_win.exe
5151
run: |
52-
sed -i -E 's/#define ONS_YURI_VERSION "(.+?)"/#define ONS_YURI_VERSION "${{ github.ref_name }}"/g' src/onsyuri/version.h
52+
if [ -z "$(echo ${{ github.ref_name }} | grep merge)" ]; then
53+
sed -i -E 's/#define ONS_YURI_VERSION "(.+?)"/#define ONS_YURI_VERSION "${{ github.ref_name }}"/g' src/onsyuri/version.h
54+
fi
5355
cd script
5456
SKIP_PORTS=yes bash cross_mingw${{ matrix.arch.suffix2 }}.sh
5557

0 commit comments

Comments
 (0)