File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 contents : read
1212 pull-requests : write
1313 steps :
14- - uses : actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
14+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1515 with :
1616 fetch-depth : 0
17+ persist-credentials : false
1718 - uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
1819 with :
1920 python-version : ' 3.13'
Original file line number Diff line number Diff line change 1010 id-token : write
1111 contents : read
1212 steps :
13- - uses : actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
13+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1414 with :
1515 fetch-depth : 0
16+ persist-credentials : false
1617 - uses : actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3
1718 with :
1819 python-version : ' 3.13'
@@ -27,11 +28,13 @@ jobs:
2728
2829 - name : Get Version
2930 id : version
31+ env :
32+ REF_NAME : ${{ github.ref_name }}
3033 run : |
3134 RAW_VERSION=$(hatch version)
3235 echo "VERSION=$RAW_VERSION" >> $GITHUB_ENV
33- if [ "v$RAW_VERSION" != "${{ github.ref_name }} " ]; then
34- echo "Error: Git tag (${{ github.ref_name }} ) does not match hatch version (v$RAW_VERSION)"
36+ if [ "v$RAW_VERSION" != "$REF_NAME " ]; then
37+ echo "Error: Git tag ($REF_NAME ) does not match hatch version (v$RAW_VERSION)"
3538 exit 1
3639 fi
3740
Original file line number Diff line number Diff line change 77 - ' setup.py'
88 - ' pyproject.toml'
99
10+ permissions :
11+ contents : read
12+ pull-requests : write
13+ issues : write
14+
1015jobs :
1116 check_version :
1217 runs-on : ubuntu-latest
1318 steps :
14- - uses : actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
19+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1520 with :
1621 fetch-depth : 0 # Fetch all history for all branches
22+ persist-credentials : false
1723
1824 - name : Check version increment
1925 id : version_check
Original file line number Diff line number Diff line change 1+ {
2+ "url" : " https://context7.com/socketdev/socket-sdk-python" ,
3+ "public_key" : " pk_9HRbh6e3q2AL9xuPAiJYT"
4+ }
You can’t perform that action at this time.
0 commit comments