5e316537f2
This way we can have an OSS action, and an ENT action. We'll be able to keep the backport-assistant workflows the same on OSS and ENT for normal PRs, and have a separate labeling system on OSS for docs backports. We should delete the backport-docs.yml file on ENT.
23 lines
615 B
YAML
23 lines
615 B
YAML
---
|
|
name: Backport Assistant Runner (for OSS & ENT)
|
|
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- closed
|
|
- labeled
|
|
|
|
jobs:
|
|
backport-targeted-release-branch:
|
|
if: github.event.pull_request.merged
|
|
runs-on: ubuntu-latest
|
|
container: hashicorpdev/backport-assistant:0.2.3
|
|
steps:
|
|
- name: Backport changes to targeted release branch
|
|
run: |
|
|
backport-assistant backport
|
|
env:
|
|
BACKPORT_LABEL_REGEXP: "backport/(?P<target>\\d+\\.\\d+\\.\\w+)"
|
|
BACKPORT_TARGET_TEMPLATE: "release/{{.target}}"
|
|
GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|