This commit is contained in:
Xi Yan 2025-01-08 17:04:49 -08:00
parent 87e2cb8029
commit e855291d3b

View file

@ -25,9 +25,7 @@ jobs:
# if: github.event_name == 'schedule' # if: github.event_name == 'schedule'
run: | run: |
# Assuming your version is in setup.py or pyproject.toml # Assuming your version is in setup.py or pyproject.toml
sed -i "s/version=\".*\"/version=\"&.dev${{ steps.date.outputs.date }}+${{ steps.sha.outputs.sha }}\"/" setup.py sed -i 's/version="\([^"]*\)"/version="\1.dev${{ steps.date.outputs.date }}+${{ steps.sha.outputs.sha }}"/' setup.py
# OR for pyproject.toml
# sed -i "s/version = \".*\"/version = \"&.dev${{ steps.date.outputs.date }}+${{ steps.sha.outputs.sha }}\"/" pyproject.toml
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with: