Skip to content

Commit 2d7f074

Browse files
committed
build: Fix release action when comparing tag and version
1 parent bdbd597 commit 2d7f074

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
VERSION="$(make release-info | grep -oP '^VERSION=\K.*')"
1919
ROCKSPEC_RELEASE_FILE="$(make release-info | grep -oP '^ROCKSPEC_RELEASE_FILE=\K.*')"
2020
if [ ! -f "${ROCKSPEC_RELEASE_FILE}" ]; then
21-
echo "No rockspec files found. Exiting."
21+
echo "No ${ROCKSPEC_RELEASE_FILE} file found. Exiting."
2222
exit 1
2323
fi
24-
# Compare tag with version with VERSIOn
25-
if [ "${GITHUB_REF}" != "refs/tags/v${VERSION}" ]; then
26-
echo "Tag does not match version. Exiting."
24+
# Compare tag with version with VERSION
25+
if [ "${{ github.ref_name }}" != "v${VERSION}" ]; then
26+
echo "${{ github.ref_name }} does not match version ${VERSION}. Exiting."
2727
exit 1
2828
fi
2929
- name: Publish to LuaRocks

0 commit comments

Comments
 (0)