Skip to content

Commit

Permalink
Revert "build: filter labels before cherry picking (#3185)"
Browse files Browse the repository at this point in the history
This reverts commit 772e899.
  • Loading branch information
jeripeierSBB committed Oct 28, 2024
1 parent 772e899 commit c39efe0
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/maintenance-cherry-pick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,16 @@ jobs:
steps:
- run: echo Labels are not empty, continuing

filter_labels:
needs: [check_labels]
runs-on: ubuntu-latest
outputs:
filtered_labels: ${{ steps.filter.outputs.filtered_labels }}
steps:
- name: Filter labels
id: filter
run: |
FILTERED_LABELS=$(jq -r '.pull_request.labels | map(select(.name | test("^target: [0-9]+\\.x$"))) | .[].name' <<< "${{ toJSON(github.event) }}")
echo "filtered_labels=${FILTERED_LABELS}" >> $GITHUB_OUTPUT
cherry_pick:
needs: [filter_labels]
needs: [check_labels]
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true &&
github.event.pull_request.user.login != 'renovate[bot]'
outputs:
failed_branches: ${{ steps.update_failed_branches.outputs.failed_branches }}
strategy:
matrix:
label: ${{ fromJson(needs.filter_labels.outputs.filtered_labels) }}
label: ${{ github.event.pull_request.labels.*.name }}

steps:
- name: Get token
Expand Down

0 comments on commit c39efe0

Please sign in to comment.