Skip to content

Commit

Permalink
Remove timestamp in the label of nightly release (with date only).
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 653387322
  • Loading branch information
ai-edge-bot authored and copybara-github committed Jul 17, 2024
1 parent 55f630a commit 9c9abd7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/nightly_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Get and set nightly datetime
id: datetime
- name: Get and set nightly date
id: date
run: |
DATETIME=$(date +'%Y%m%d%H%M')
echo "NIGHTLY_RELEASE_DATETIME=${DATETIME}" >> $GITHUB_ENV
echo "datetime=${DATETIME}" >> $GITHUB_OUTPUT
DATE=$(date +'%Y%m%d')
echo "NIGHTLY_RELEASE_DATE=${DATE}" >> $GITHUB_ENV
echo "date=${DATE}" >> $GITHUB_OUTPUT
- name: Setup Python
uses: actions/setup-python@v4
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

name = "ai-edge-quantizer"
version = "0.0.1"
if nightly_release_datetime := os.environ.get("NIGHTLY_RELEASE_DATETIME"):
if nightly_release_date := os.environ.get("NIGHTLY_RELEASE_DATE"):
name += "-nightly"
version += ".dev" + nightly_release_datetime
version += ".dev" + nightly_release_date


setuptools.setup(
Expand Down

0 comments on commit 9c9abd7

Please sign in to comment.