c80d5805dc
* Make backport assistant work with ENT backport tags I want the regexp to include word characters and the plus sign on enterprise. I'm confused about the levels of escaping required, because this is a shell env var that gets passed to a go program as a regular expression. I didn't escape the square brackets because the parens weren't escaped. I matched what was done previously with the '.'s for the '+' because I also want that literal, but it was unclear from playing around with https://regex101.com/ and go regexps whether the extra backslashes were required for the '+' char. * Update .github/workflows/backport.yml Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com> Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com>
23 lines
618 B
YAML
23 lines
618 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 }}
|