Skip to content

Commit 1d1c7e0

Browse files
authored
[Release-Only] Enable docs build on final rc. Disable push on regular rc (pytorch#153973)
Enable docs build on final rc. Disable push on regular rc
1 parent 70518b7 commit 1d1c7e0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/nightly.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ on:
55
- cron: 0 0 * * *
66
push:
77
tags:
8-
# NOTE: Doc build pipelines should only get triggered on release candidate builds
8+
# Final Release tags look like: v1.11.0
9+
- v[0-9]+.[0-9]+.[0-9]+
910
# Release candidate tags look like: v1.11.0-rc1
1011
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
1112
- ciflow/nightly/*
@@ -47,7 +48,7 @@ jobs:
4748
runner_prefix: "${{ needs.get-label-type.outputs.label-type }}"
4849
build-environment: linux-jammy-py3.9-gcc11
4950
docker-image: ${{ needs.docs-build.outputs.docker-image }}
50-
push: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || startsWith(github.event.ref, 'refs/tags/v') }}
51+
push: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || (startsWith(github.event.ref, 'refs/tags/v') && !contains(github.event.ref, 'rc')) }}
5152
run-doxygen: true
5253
secrets:
5354
GH_PYTORCHBOT_TOKEN: ${{ secrets.GH_PYTORCHBOT_TOKEN }}

0 commit comments

Comments
 (0)