Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[MINOR] improvement(CI): support branch-1.3 in auto cherry-pick workflow (#11256)

mchadese4a689325427
diff --git a/.github/workflows/auto-cherry-pick.yml b/.github/workflows/auto-cherry-pick.yml
index e9c4005622..43093ae961 100644
--- a/.github/workflows/auto-cherry-pick.yml
+++ b/.github/workflows/auto-cherry-pick.yml
@@ -10,9 +10,8 @@ jobs:
runs-on: ubuntu-latest
name: Detect cherry-pick labels from merged PR
outputs:
- branch-1-0: ${{ steps.check-labels.outputs.branch-1-0 }}
- branch-1-1: ${{ steps.check-labels.outputs.branch-1-1 }}
branch-1-2: ${{ steps.check-labels.outputs.branch-1-2 }}
+ branch-1-3: ${{ steps.check-labels.outputs.branch-1-3 }}
commit-sha: ${{ steps.get-commit.outputs.commit-sha }}
commit-message: ${{ steps.get-commit.outputs.commit-message }}
steps:
@@ -65,50 +64,34 @@ jobs:
echo "PR #$PR_NUMBER labels: $LABELS"
# Check for each branch label
- if echo "$LABELS" | grep -q "branch-1.0"; then
- echo "branch-1-0=true" >> $GITHUB_OUTPUT
- else
- echo "branch-1-0=false" >> $GITHUB_OUTPUT
- fi
-
- if echo "$LABELS" | grep -q "branch-1.1"; then
- echo "branch-1-1=true" >> $GITHUB_OUTPUT
- else
- echo "branch-1-1=false" >> $GITHUB_OUTPUT
- fi
-
if echo "$LABELS" | grep -q "branch-1.2"; then
echo "branch-1-2=true" >> $GITHUB_OUTPUT
else
echo "branch-1-2=false" >> $GITHUB_OUTPUT
fi
- cherry-pick-branch-1-0:
- needs: detect-cherry-pick-labels
- if: needs.detect-cherry-pick-labels.outputs.branch-1-0 == 'true'
- uses: ./.github/workflows/cherry-pick-branch.yml
- with:
- target-branch: branch-1.0
- commit-sha: ${{ needs.detect-cherry-pick-labels.outputs.commit-sha }}
- commit-message: ${{ needs.detect-cherry-pick-labels.outputs.commit-message }}
- secrets: inherit
+ if echo "$LABELS" | grep -q "branch-1.3"; then
+ echo "branch-1-3=true" >> $GITHUB_OUTPUT
+ else
+ echo "branch-1-3=false" >> $GITHUB_OUTPUT
+ fi
- cherry-pick-branch-1-1:
+ cherry-pick-branch-1-2:
needs: detect-cherry-pick-labels
- if: needs.detect-cherry-pick-labels.outputs.branch-1-1 == 'true'
+ if: needs.detect-cherry-pick-labels.outputs.branch-1-2 == 'true'
uses: ./.github/workflows/cherry-pick-branch.yml
with:
- target-branch: branch-1.1
+ target-branch: branch-1.2
commit-sha: ${{ needs.detect-cherry-pick-labels.outputs.commit-sha }}
commit-message: ${{ needs.detect-cherry-pick-labels.outputs.commit-message }}
secrets: inherit
- cherry-pick-branch-1-2:
+ cherry-pick-branch-1-3:
needs: detect-cherry-pick-labels
- if: needs.detect-cherry-pick-labels.outputs.branch-1-2 == 'true'
+ if: needs.detect-cherry-pick-labels.outputs.branch-1-3 == 'true'
uses: ./.github/workflows/cherry-pick-branch.yml
with:
- target-branch: branch-1.2
+ target-branch: branch-1.3
commit-sha: ${{ needs.detect-cherry-pick-labels.outputs.commit-sha }}
commit-message: ${{ needs.detect-cherry-pick-labels.outputs.commit-message }}
secrets: inherit