Skip to content

Commit

Permalink
ci/hotfix: legacy workflow (#16720)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
Borda and pre-commit-ci[bot] authored Feb 10, 2023
1 parent 3d69e46 commit 16fc948
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@

## Deployment

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

## Bots

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ on:
default: false
required: false
type: boolean
secrets: inherit

defaults:
run:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/ci-checkpoints.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Validate legacy ckpts

on:
push:
branches: [master, "release/*"]
pull_request:
branches: [master, "release/*"]
types: [opened, reopened, ready_for_review, synchronize] # added `ready_for_review` since draft is skipped
paths:
- ".github/workflows/ci-checkpoints.yml"
- ".github/workflows/_legacy-checkpoints.yml.yml"

jobs:

try-legacy-checkpoints:
uses: ./.github/workflows/_legacy-checkpoints.yml
with:
push_to_s3: false
create_pr: false
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/release-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ jobs:

legacy-checkpoints:
needs: [build-packages]
uses: ./.github/workflows/legacy-checkpoints.yml
uses: ./.github/workflows/_legacy-checkpoints.yml
with:
push_to_s3: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }}
create_pr: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }}
Expand Down

0 comments on commit 16fc948

Please sign in to comment.