Skip to content

Commit 8d8ffe6

Browse files
committed
i hope the pipeline works now...
1 parent 75b3f9a commit 8d8ffe6

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Diff for: .github/workflows/release.yml

+8-7
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)