File tree Expand file tree Collapse file tree 5 files changed +18
-2
lines changed Expand file tree Collapse file tree 5 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Debug
2
2
3
+ permissions :
4
+ contents : read
5
+
3
6
on :
4
7
workflow_dispatch :
5
8
inputs :
Original file line number Diff line number Diff line change 1
1
name : Lint
2
2
3
+ permissions :
4
+ contents : read
5
+
3
6
on :
4
7
push :
5
8
pull_request :
Original file line number Diff line number Diff line change 65
65
# verify version
66
66
just verify_version $TAG_NAME
67
67
68
+ # check that github has marked the tag as verified
69
+ export TAG_URL=`curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository_owner }}/${{ github.repository }}/git/refs/tags/$TAG_NAME | jq -r ".object.url"`
70
+ result=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "$TAG_URL" | jq -r ".verification.verified")
71
+ if [ "$result" != "true" ]; then
72
+ echo "Error: Tag verification failed." >&2
73
+ exit 1
74
+ fi
75
+
68
76
# export the release version
69
77
echo "RELEASE_VERSION=${TAG_NAME}" >> $GITHUB_ENV
70
78
- name : Build the binary wheel and a source tarball
Original file line number Diff line number Diff line change 1
1
name : Test
2
2
3
+ permissions :
4
+ contents : read
5
+
3
6
on :
4
7
push :
5
8
pull_request :
Original file line number Diff line number Diff line change @@ -206,7 +206,6 @@ coverage:
206
206
run + ARGS :
207
207
uv run {{ ARGS }}
208
208
209
-
210
209
# validate the given version string against the lib version
211
210
[script ]
212
211
validate_version VERSION :
@@ -219,6 +218,6 @@ validate_version VERSION:
219
218
220
219
# issue a relase for the given semver string (e.g. 2.1.0)
221
220
release VERSION :
222
- @ just _validate_version {{ VERSION }}
221
+ @ just validate_version {{ VERSION }}
223
222
git tag -s v{{ VERSION }} -m " {{ VERSION }} Release"
224
223
git push origin {{ VERSION }}
You can’t perform that action at this time.
0 commit comments