Skip to content

Commit

Permalink
[CI] upload release logic
Browse files Browse the repository at this point in the history
  • Loading branch information
CSY-ModelCloud committed Dec 24, 2024
1 parent 5712c49 commit a63c01e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ jobs:
- name: Waiting for confirmation
if: (github.event_name == 'release' || github.event.inputs.upload_pypi == 'true') && !cancelled()
run: |
echo "open http://${RUNNER}/gpu/ci/confirm?id=${{ github.run_id }}&timestamp=$timestamp&confirmed=1 to confirm releasing to pypi"
for i in {1..5}; do echo "."; done
echo "click http://${RUNNER}/gpu/ci/confirm?id=${{ github.run_id }}&timestamp=$timestamp&denied=1 to DENY"
timestamp=$(date +%s%3N)
status=-1
Expand All @@ -277,10 +281,6 @@ jobs:
if [ "$status" == "2" ]; then
echo "PYPI_RELEASE_CONFIRMATION=$status" >> $GITHUB_ENV
elif [ "$status" -lt 0 ]; then
for i in {1..5}; do echo "."; done
echo "open http://${RUNNER}/gpu/ci/confirm?id=${{ github.run_id }}&timestamp=$timestamp&confirmed=1 to confirm releasing to pypi"
for i in {1..5}; do echo "."; done
echo "click http://${RUNNER}/gpu/ci/confirm?id=${{ github.run_id }}&timestamp=$timestamp&denied=1 to DENY"
sleep 5
else
echo "release has been confirmed"
Expand Down

0 comments on commit a63c01e

Please sign in to comment.