Skip to content

Commit

Permalink
test2
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobharder committed Feb 25, 2024
1 parent a259e7d commit 1ff6af5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ jobs:
fetch-depth: 0

- name: Test
run: git describe --tags
run: |
git describe --tags |
./source/Burntime.MonoGame/get-product-version.bat
2 changes: 1 addition & 1 deletion source/Burntime.MonoGame/get-file-version.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
:: v1.2.3-1-asdf -> 1.2.3.1
:: v1.2-1-asdf -> 1.2.0.1

FOR /F "tokens=1 delims==v+" %%n IN ('git describe --tags --abbrev=0') DO (
FOR /F "tokens=1 delims==v+" %%n IN ('git describe --tags') DO (
FOR /F "tokens=1-3 delims==-" %%i IN ("%%n") DO (
IF "%%j%%k" == "" (
echo %%i
Expand Down
3 changes: 2 additions & 1 deletion source/Burntime.MonoGame/get-product-version.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
:: v1.2.3-rc1 -> 1.2.3-rc1
:: v1.2.3-1-asdf -> 1.2.3-1-asdf

FOR /F "tokens=1-2 delims==v+" %%i IN ('git describe --tags --abbrev=0') DO (
git describe --tags
FOR /F "tokens=1-2 delims==v+" %%i IN ('git describe --tags') DO (
echo %%i
)
2 changes: 1 addition & 1 deletion source/Burntime.MonoGame/get-semver-version.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
:: v1.2-1-asdf -> 1.2.0.1
:: v1.2.3-rc1+abc -> 1.2.3-rc1

FOR /F "tokens=1 delims==v+" %%n IN ('git describe --tags --abbrev=0') DO (
FOR /F "tokens=1 delims==v+" %%n IN ('git describe --tags') DO (
FOR /F "tokens=1-3 delims==-" %%i IN ("%%n") DO (
IF "%%j%%k" == "" (
echo %%i
Expand Down

0 comments on commit 1ff6af5

Please sign in to comment.