Skip to content

Commit

Permalink
Update backport assistant to use merge commits (#3050)
Browse files Browse the repository at this point in the history
* Update backport assistant to use merge commits

* update to true
  • Loading branch information
curtbushko authored Oct 6, 2023
1 parent 5ff131e commit 4d87352
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ jobs:
backport:
if: github.event.pull_request.merged
runs-on: ubuntu-latest
container: hashicorpdev/backport-assistant:0.3.4
container: hashicorpdev/backport-assistant:0.3.5
steps:
- name: Run Backport Assistant
run: backport-assistant backport -merge-method=squash -gh-automerge
env:
BACKPORT_LABEL_REGEXP: "backport/(?P<target>\\d+\\.\\d+\\.x)"
BACKPORT_TARGET_TEMPLATE: "release/{{.target}}"
# This forces the backport assistant to backport the merged commit
# instead of each commit individually. The environment variable
# just needs to exist for this to happen.
BACKPORT_MERGE_COMMIT: true
GITHUB_TOKEN: ${{ secrets.ELEVATED_GITHUB_TOKEN }}

0 comments on commit 4d87352

Please sign in to comment.