auto-create versoin from release
diff --git a/.github/workflows/release_module.yml b/.github/workflows/release_module.yml index 3d6082d..5844796 100644 --- a/.github/workflows/release_module.yml +++ b/.github/workflows/release_module.yml
@@ -51,6 +51,8 @@ chmod a+x "${RUNNER_TEMP}/buildozer" "${RUNNER_TEMP}/buildozer" "set version ${VERSION}" "//${SUBDIR}/MODULE.bazel:${MODULE}" || true git add "${SUBDIR}/MODULE.bazel" + sed -i -e "s/@AUTO_VERSION@/${VERSION}/" ${SUBDIR}/version.bzl + git add "${SUBDIR}/version.bzl" git commit -m "Release `${MODULE}-${VERSION}`" # 3. Push release tag.
diff --git a/providers/version.bzl b/providers/version.bzl index ead02a6..f05dc98 100644 --- a/providers/version.bzl +++ b/providers/version.bzl
@@ -1,3 +1,3 @@ """The version of rules_pkg_providers.""" -version = "1.0.0" +version = "@AUTO_VERSION@"