File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,16 @@ jobs:
12
12
- uses : actions/checkout@v4
13
13
- uses : erlef/setup-beam@v1
14
14
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"
18
17
- 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
21
23
fi
22
- echo "tag does not match version in gleam.toml, refusing to publish"
23
- exit 1
24
+ name: check version
24
25
- run : gleam format --check src test
25
26
- run : gleam test --target erlang
26
27
- run : gleam test --target javascript
You can’t perform that action at this time.
0 commit comments