feat: add automated backport support #606
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: On Pull Request | |
| # On pull_request, we: | |
| # * always publish to charmhub at latest/edge/branchname | |
| # * always run tests | |
| on: | |
| pull_request: | |
| jobs: | |
| populate-labels: | |
| name: Populate labels | |
| if: github.base_ref == 'main' && (github.event.action == 'opened' || github.event.action == 'reopened') | |
| uses: canonical/charmed-kubeflow-workflows/.github/workflows/populate-labels.yaml@main | |
| secrets: inherit | |
| with: | |
| track_file_path: ".github/automatic_backport_tracks.yaml" | |
| label_prefix: "backport " | |
| tests: | |
| name: Run Tests | |
| uses: ./.github/workflows/integrate.yaml | |
| secrets: inherit | |
| # publish runs in parallel with tests, as we always publish in this situation | |
| publish-charm: | |
| name: Publish Charm | |
| uses: ./.github/workflows/publish.yaml | |
| secrets: inherit | |