diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml new file mode 100644 index 0000000000..ddf5d10b32 --- /dev/null +++ b/.github/workflows/backport.yml @@ -0,0 +1,21 @@ +--- + name: Backport Assistant Runner + + on: + pull_request_target: + types: + - closed + + jobs: + backport: + if: github.event.pull_request.merged + runs-on: ubuntu-latest + container: hashicorpdev/backport-assistant:0.2.1 + steps: + - name: Run Backport Assistant + run: | + backport-assistant backport -automerge + env: + BACKPORT_LABEL_REGEXP: "(?Pwebsite)/cherrypick" + BACKPORT_TARGET_TEMPLATE: "stable-{{.target}}" + GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }} \ No newline at end of file