Skip to content

Commit

Permalink
fix(backport): remove v from branch prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
jfagoagas committed Dec 9, 2024
1 parent 4b41bd6 commit 9975b4d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ on:
types: ['labeled', 'closed']

env:
BACKPORT_LABEL_PREFIX: backport-to-v
# The prefix of the label that triggers the backport must not contain the branch name
# so, for example, if the branch is 'master', the label should be 'backport-to-<branch>'
BACKPORT_LABEL_PREFIX: backport-to-
BACKPORT_LABEL_IGNORE: was-backported

jobs:
Expand All @@ -25,16 +27,16 @@ jobs:
with:
allow_failure: true
prefix_mode: true
one_of: ${{ env.BACKPORT_LABEL_PREFIX}}
none_of: ${{ env.BACKPORT_LABEL_IGNORE}}
one_of: ${{ env.BACKPORT_LABEL_PREFIX }}
none_of: ${{ env.BACKPORT_LABEL_IGNORE }}
repo_token: ${{ secrets.GITHUB_TOKEN }}

- name: Backport Action
if: steps.preview_label_check.outputs.label_check == 'success'
uses: sorenlouv/[email protected]
with:
github_token: ${{ secrets.PROWLER_BOT_ACCESS_TOKEN }}
auto_backport_label_prefix: ${{ env.BACKPORT_LABEL_PREFIX}}
auto_backport_label_prefix: ${{ env.BACKPORT_LABEL_PREFIX }}

- name: Info log
if: ${{ success() && steps.preview_label_check.outputs.label_check == 'success' }}
Expand Down

0 comments on commit 9975b4d

Please sign in to comment.