We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5699af commit 964f295Copy full SHA for 964f295
.github/workflows/build.yml
@@ -195,8 +195,6 @@ jobs:
195
196
- name: Check version
197
run: python scripts/version.py
198
- env:
199
- VERSION: ${{ github.event.release.tag_name }}
200
201
- name: Release
202
uses: "marvinpinto/action-automatic-releases@latest"
scripts/version.py
@@ -1,9 +1,10 @@
1
import os
2
import rtoml
3
4
-current_version = os.getenv("VERSION")
+current_version = os.getenv("GITHUB_REF_NAME")
5
6
-config = rtoml.load("Cargo.toml")
+with open("Cargo.toml", "r") as f:
7
+ config = rtoml.load(f)
8
9
if config["package"]["version"] != current_version:
10
# exit with error message
0 commit comments