80
80
run : |
81
81
pip install httpx
82
82
83
- - if : ${{ inputs.skip-test-checks == 'false' }}
83
+ - if : ${{ inputs.skip-test-checks == 'false' || inputs.skip-test-checks == false }}
84
84
name : Get commit status
85
85
run : |
86
86
python3 -c "$(cat << EOF
@@ -174,7 +174,7 @@ jobs:
174
174
exit 1
175
175
fi
176
176
177
- - if : ${{ inputs.skip-other-version-checks == 'false' }}
177
+ - if : ${{ inputs.skip-other-version-checks == 'false' || inputs.skip-other-version-checks == false }}
178
178
name : Check if core and frontend released
179
179
run : |
180
180
canReleaseSafelyResponse=`curl -s -X GET "https://api.supertokens.io/0/driver/release/check?password=${{ secrets.SUPERTOKENS_API_KEY }}&version=${{ needs.setup.outputs.setupVersion }}&name=python" -H 'api-version: 0'`
@@ -201,7 +201,7 @@ jobs:
201
201
202
202
- name : Mark for release
203
203
run : |
204
- curl --fail-with-body -X PUT \
204
+ curl --fail-with-body -X PATCH \
205
205
https://api.supertokens.io/0/driver \
206
206
-H 'Content-Type: application/json' \
207
207
-H 'api-version: 0' \
@@ -247,16 +247,10 @@ jobs:
247
247
248
248
- name : Check API and merge to master
249
249
run : |
250
- response=$(curl -s\
251
- -X GET\
252
- "https://api.supertokens.io/0/driver/latest/check?\
253
- password=${{ secrets.SUPERTOKENS_API_KEY }}&\
254
- version=${{ needs.setup.outputs.setupVersion }}&\
255
- name=python" \
256
- -H 'api-version: 0'
257
- )
258
-
259
- if [[ $response == "true" ]]
250
+ response=`curl -s -X GET "https://api.supertokens.io/0/driver/latest/check?password=${{ secrets.SUPERTOKENS_API_KEY }}&version=${{ needs.setup.outputs.setupVersion }}&name=python" -H 'api-version: 0'`
251
+ isLatest=$(echo $response | jq .isLatest)
252
+
253
+ if [[ $isLatest == "true" ]]
260
254
then
261
255
git checkout master
262
256
git checkout ${{ inputs.branch }}
@@ -318,8 +312,8 @@ jobs:
318
312
fetch-tags : true
319
313
320
314
- run : |
321
- # python3 -m pip install pip setuptools packaging poetry clikit --upgrade
322
- # make dev-install
323
- # pip install setuptools wheels twine
324
- # python setup.py sdist bdist_wheel
325
- # twine upload -u ${{ secrets.TWINE_USERNAME }} -p ${{ secrets.TWINE_PASSWORD }} dist/*
315
+ python3 -m pip install pip setuptools packaging poetry clikit --upgrade
316
+ make dev-install
317
+ pip install setuptools wheels twine
318
+ python setup.py sdist bdist_wheel
319
+ twine upload -u ${{ secrets.TWINE_USERNAME }} -p ${{ secrets.TWINE_PASSWORD }} dist/*
0 commit comments