Skip to content

Commit

Permalink
Add a force-sdist input to the Python release workflow.
Browse files Browse the repository at this point in the history
The first run for this month's release failed after uploading some
of the wheels, but before uploading the sdist, so we need a way to
force the sdist on a rerun if necessary.

Change-Id: I3851d20cdeba02caad5f450e77cd7ef8704990d2
Reviewed-on: https://code-review.googlesource.com/c/re2/+/63170
Reviewed-by: Alex Chernyakhovsky <achernya@google.com>
Reviewed-by: Paul Wankadia <junyer@google.com>
  • Loading branch information
junyer committed May 31, 2024
1 parent 1db129f commit b91097e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
build:
required: true
type: number
force-sdist:
required: false
type: boolean
default: false
permissions:
contents: read
jobs:
Expand Down Expand Up @@ -202,7 +206,7 @@ jobs:
python -m pip install --upgrade pip
python -m pip install --upgrade build wheel
shell: bash
- if: inputs.build == 1
- if: inputs.build == 1 || inputs.force-sdist == true
name: Build source
env:
SOURCE_DATE_EPOCH: ${{ env.timestamp }}
Expand Down

0 comments on commit b91097e

Please sign in to comment.