Skip to content

Commit

Permalink
CI(backport): Fix backport action
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzmbrzl committed Oct 1, 2024
1 parent b4a116c commit bfe83db
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,21 @@ on:
types: ["labeled", "closed"]

jobs:
label_check:
label_checker:
name: Check labels
uses: docker://agilepathway/pull-request-label-checker:latest
with:
prefix_mode: true
all_of: auto-backport-to-
repo_token: ${{ secrets.GITHUB_TOKEN }}
allow_failure: true
runs-on: ubuntu-latest
steps:
- id: check
uses: docker://agilepathway/pull-request-label-checker:latest
with:
prefix_mode: true
all_of: auto-backport-to-
repo_token: ${{ secrets.GITHUB_TOKEN }}
allow_failure: true

backport:
name: Backport PR
if: github.event.pull_request.merged == true && steps.label_check.outputs.label_check == 'success'
if: github.event.pull_request.merged == true && label_checker.steps.check.outputs.label_check == 'success'
runs-on: ubuntu-latest
steps:
- name: Backport Action
Expand Down

0 comments on commit bfe83db

Please sign in to comment.