mirror of https://github.com/status-im/consul.git
chore(ci): update backport-assistant to use gh automerge (#14839)
This commit is contained in:
parent
f9dc083b6d
commit
95204f4f93
|
@ -16,11 +16,11 @@ jobs:
|
||||||
backport:
|
backport:
|
||||||
if: github.event.pull_request.merged
|
if: github.event.pull_request.merged
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: hashicorpdev/backport-assistant:0.2.5
|
container: hashicorpdev/backport-assistant:0.3.0
|
||||||
steps:
|
steps:
|
||||||
- name: Run Backport Assistant for stable-website
|
- name: Run Backport Assistant for stable-website
|
||||||
run: |
|
run: |
|
||||||
backport-assistant backport -merge-method=squash -automerge
|
backport-assistant backport -merge-method=squash -gh-automerge
|
||||||
env:
|
env:
|
||||||
BACKPORT_LABEL_REGEXP: "type/docs-(?P<target>cherrypick)"
|
BACKPORT_LABEL_REGEXP: "type/docs-(?P<target>cherrypick)"
|
||||||
BACKPORT_TARGET_TEMPLATE: "stable-website"
|
BACKPORT_TARGET_TEMPLATE: "stable-website"
|
||||||
|
@ -41,13 +41,13 @@ jobs:
|
||||||
# set BACKPORT_TARGET_TEMPLATE for backport-assistant
|
# set BACKPORT_TARGET_TEMPLATE for backport-assistant
|
||||||
# trims backport/ from the beginning with parameter substitution
|
# trims backport/ from the beginning with parameter substitution
|
||||||
export BACKPORT_TARGET_TEMPLATE="release/${latest_backport_label#backport/}.x"
|
export BACKPORT_TARGET_TEMPLATE="release/${latest_backport_label#backport/}.x"
|
||||||
backport-assistant backport -merge-method=squash -automerge
|
backport-assistant backport -merge-method=squash -gh-automerge
|
||||||
env:
|
env:
|
||||||
BACKPORT_LABEL_REGEXP: "type/docs-(?P<target>cherrypick)"
|
BACKPORT_LABEL_REGEXP: "type/docs-(?P<target>cherrypick)"
|
||||||
GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||||
- name: Run Backport Assistant for release branches
|
- name: Run Backport Assistant for release branches
|
||||||
run: |
|
run: |
|
||||||
backport-assistant backport -merge-method=squash -automerge
|
backport-assistant backport -merge-method=squash -gh-automerge
|
||||||
env:
|
env:
|
||||||
BACKPORT_LABEL_REGEXP: "backport/(?P<target>\\d+\\.\\d+)"
|
BACKPORT_LABEL_REGEXP: "backport/(?P<target>\\d+\\.\\d+)"
|
||||||
BACKPORT_TARGET_TEMPLATE: "release/{{.target}}.x"
|
BACKPORT_TARGET_TEMPLATE: "release/{{.target}}.x"
|
||||||
|
|
Loading…
Reference in New Issue