Skip to content

Commit 236bd74

Browse files
committed
Check for the ci/no-release label before anything else
1 parent 0ae71d2 commit 236bd74

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release-main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ jobs:
3535
envsubst < dev_tools/packaging/pypirc_template > $HOME/.pypirc
3636
- name: Build and publish
3737
run: |
38-
CIRQ_PRE_RELEASE_VERSION=$(dev_tools/packaging/generate-dev-version-id.sh)
39-
if [[ "${CIRQ_PRE_RELEASE_VERSION}" != *.dev* ]]; then
40-
echo "Not a dev version"
41-
exit 1
42-
fi
4338
if ${{ contains(github.event.pull_request.labels.*.name, 'ci/no-release') }}; then
4439
echo "The PR has ci/no-release label - skipping the release"
4540
echo "### Skipped release due to ci/no-release label" >> ${GITHUB_STEP_SUMMARY}
4641
exit 0
4742
fi
43+
CIRQ_PRE_RELEASE_VERSION=$(dev_tools/packaging/generate-dev-version-id.sh)
44+
if [[ "${CIRQ_PRE_RELEASE_VERSION}" != *.dev* ]]; then
45+
echo "Not a dev version"
46+
exit 1
47+
fi
4848
echo "Building wheels for the dev version '${CIRQ_PRE_RELEASE_VERSION}'"
4949
THIS_DATE_EPOCH=$(git log -1 --pretty="%ct")
5050
out_dir="${HOME}/cirq-dist"

0 commit comments

Comments
 (0)