File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,16 @@ jobs:
1212 - uses : actions/checkout@v4
1313 - uses : erlef/setup-beam@v1
1414 with :
15- otp-version : " 26"
16- gleam-version : " 1.2.0"
17- - run : cargo install tomlq
15+ otp-version : " 27"
16+ gleam-version : " 1.5.0"
1817 - run : |
19- if [ "v$(tomlq version -f gleam.toml)" == "${{ github.ref_name }}" ]; then
20- exit 0
18+ version="v$(cat gleam.toml | grep -m 1 "version" | sed -r "s/version *= *\"([[:digit:].]+)\"/\1/")"
19+ if [ "$version" != "${{ github.ref_name }}" ]; then
20+ echo "tag '${{ github.ref_name }}' does not match the version in gleam.toml"
21+ echo "expected a tag name 'v$version'"
22+ exit 1
2123 fi
22- echo "tag does not match version in gleam.toml, refusing to publish"
23- exit 1
24+ name: check version
2425 - run : gleam format --check src test
2526 - run : gleam test --target erlang
2627 - run : gleam test --target javascript
You can’t perform that action at this time.
0 commit comments