Skip to content

Commit 16fc948

Browse files
ci/hotfix: legacy workflow (#16720)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 3d69e46 commit 16fc948

File tree

4 files changed

+26
-7
lines changed

4 files changed

+26
-7
lines changed

.github/workflows/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@
4646

4747
## Deployment
4848

49-
| workflow file | action |
50-
| ---------------------------------------- | ---------------------------------------------------------------------------------- |
51-
| .github/workflows/release-pypi.yml | Publish a release to PyPI. |
52-
| .github/workflows/release-docker.yml | Build Docker images from dockers/\*/Dockerfile and publish them on hub.docker.com. |
53-
| .github/workflows/legacy-checkpoints.yml | App on request generate legacy checkpoints and upload them to AWS S3. |
49+
| workflow file | action |
50+
| ------------------------------------------ | ---------------------------------------------------------------------------------- |
51+
| .github/workflows/release-pypi.yml | Publish a release to PyPI. |
52+
| .github/workflows/release-docker.yml | Build Docker images from dockers/\*/Dockerfile and publish them on hub.docker.com. |
53+
| .github/workflows/\_legacy-checkpoints.yml | App on request generate legacy checkpoints and upload them to AWS S3. |
5454

5555
## Bots
5656

.github/workflows/legacy-checkpoints.yml renamed to .github/workflows/_legacy-checkpoints.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ on:
3535
default: false
3636
required: false
3737
type: boolean
38-
secrets: inherit
3938

4039
defaults:
4140
run:

.github/workflows/ci-checkpoints.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Validate legacy ckpts
2+
3+
on:
4+
push:
5+
branches: [master, "release/*"]
6+
pull_request:
7+
branches: [master, "release/*"]
8+
types: [opened, reopened, ready_for_review, synchronize] # added `ready_for_review` since draft is skipped
9+
paths:
10+
- ".github/workflows/ci-checkpoints.yml"
11+
- ".github/workflows/_legacy-checkpoints.yml.yml"
12+
13+
jobs:
14+
15+
try-legacy-checkpoints:
16+
uses: ./.github/workflows/_legacy-checkpoints.yml
17+
with:
18+
push_to_s3: false
19+
create_pr: false
20+
secrets: inherit

.github/workflows/release-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ jobs:
169169

170170
legacy-checkpoints:
171171
needs: [build-packages]
172-
uses: ./.github/workflows/legacy-checkpoints.yml
172+
uses: ./.github/workflows/_legacy-checkpoints.yml
173173
with:
174174
push_to_s3: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }}
175175
create_pr: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }}

0 commit comments

Comments
 (0)