Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(backport): remove v from branch prefix #6081

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading