From a45ce85ec12c96ff676a0a15e2344a0fab043b9d Mon Sep 17 00:00:00 2001 From: Xi Yan Date: Wed, 8 Jan 2025 17:24:01 -0800 Subject: [PATCH] change schedule --- .github/workflows/publish-to-test-pypi.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index f141f9b76..88bf144c3 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -1,10 +1,9 @@ name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI on: - push - # workflow_dispatch: # Keep manual trigger - # schedule: - # - cron: "0 0 * * *" # Run every day at midnight + workflow_dispatch: # Keep manual trigger + schedule: + - cron: "0 0 * * *" # Run every day at midnight jobs: build: @@ -22,7 +21,7 @@ jobs: id: sha run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: Update version for nightly - # if: github.event_name == 'schedule' + if: github.event_name == 'schedule' run: | # Assuming your version is in setup.py or pyproject.toml sed -i 's/version="\([^"]*\)"/version="\1rc${{ steps.date.outputs.date }}"/' setup.py