From 0e61bd202bc22cd395bc7768fedfd476982e13fa Mon Sep 17 00:00:00 2001 From: Rae Krantz <8461333+krantzinator@users.noreply.github.com> Date: Wed, 28 Oct 2020 15:44:51 -0400 Subject: [PATCH] add workflow file for backport-assistant github action (#735) * add workflow file for backport-assistant github action * up version of backport-assistant to handle forked PRs --- .github/workflows/backport.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/backport.yml 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