diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..74eaa0781 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,22 @@ +--- +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.0.0 + steps: + - name: Run Backport Assistant + run: | + backport-assistant backport + env: + BACKPORT_LABEL_REGEXP: "(?P\\d\\.\\d\\.\\d)-backport" + BACKPORT_TARGET_TEMPLATE: "v{{.target}}" + GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }} + GITHUB_REVIEW_TEAMS: "hashicorp/terraform-core"