Skip to content

Commit

Permalink
Manual backport of update backport assistant to use merge commits to …
Browse files Browse the repository at this point in the history
…1.0.x (#3054)

Manual backport of backport merge commit
  • Loading branch information
curtbushko authored Oct 6, 2023
1 parent 00fd857 commit 769ad51
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Copyright (c) HashiCorp, Inc.

---
name: Backport Assistant Runner

on:
pull_request:
pull_request_target:
types:
- closed
- labeled
Expand All @@ -11,11 +13,15 @@ jobs:
backport:
if: github.event.pull_request.merged
runs-on: ubuntu-latest
container: hashicorpdev/backport-assistant:0.3.3
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 769ad51

Please sign in to comment.