Skip to content

Commit e447a54

Browse files
authored
fix: release pipeline syntax and conditionals (supertokens#601)
* fix: release pipeline conditionals - Also fixes API call method * fix: API call syntax
1 parent 1c30b61 commit e447a54

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

.github/workflows/pipeline-release-tag.yml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
run: |
8181
pip install httpx
8282
83-
- if: ${{ inputs.skip-test-checks == 'false' }}
83+
- if: ${{ inputs.skip-test-checks == 'false' || inputs.skip-test-checks == false }}
8484
name: Get commit status
8585
run: |
8686
python3 -c "$(cat << EOF
@@ -174,7 +174,7 @@ jobs:
174174
exit 1
175175
fi
176176
177-
- if: ${{ inputs.skip-other-version-checks == 'false' }}
177+
- if: ${{ inputs.skip-other-version-checks == 'false' || inputs.skip-other-version-checks == false }}
178178
name: Check if core and frontend released
179179
run: |
180180
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:
201201
202202
- name: Mark for release
203203
run: |
204-
curl --fail-with-body -X PUT \
204+
curl --fail-with-body -X PATCH \
205205
https://api.supertokens.io/0/driver \
206206
-H 'Content-Type: application/json' \
207207
-H 'api-version: 0' \
@@ -247,16 +247,10 @@ jobs:
247247
248248
- name: Check API and merge to master
249249
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" ]]
260254
then
261255
git checkout master
262256
git checkout ${{ inputs.branch }}
@@ -318,8 +312,8 @@ jobs:
318312
fetch-tags: true
319313

320314
- 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

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy