World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[MINOR] ci: Support automatic cherry-picks to branch-2.0 (#14982)
Jerry Shao803230f70656
diff --git a/.github/workflows/auto-cherry-pick.yml b/.github/workflows/auto-cherry-pick.ymlindex 9b571f97c8..60ef41d51c 100644--- a/.github/workflows/auto-cherry-pick.yml+++ b/.github/workflows/auto-cherry-pick.yml@@ -13,8 +13,8 @@ jobs:runs-on: ubuntu-latestname: Detect cherry-pick labels from merged PRoutputs:- branch-1-2: ${{ steps.check-labels.outputs.branch-1-2 }}branch-1-3: ${{ steps.check-labels.outputs.branch-1-3 }}+ branch-2-0: ${{ steps.check-labels.outputs.branch-2-0 }}commit-sha: ${{ steps.get-commit.outputs.commit-sha }}commit-message: ${{ steps.get-commit.outputs.commit-message }}steps:@@ -67,34 +67,34 @@ jobs:echo "PR #$PR_NUMBER labels: $LABELS"# Check for each branch label- 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-if echo "$LABELS" | grep -q "branch-1.3"; thenecho "branch-1-3=true" >> $GITHUB_OUTPUTelseecho "branch-1-3=false" >> $GITHUB_OUTPUTfi- cherry-pick-branch-1-2:+ if echo "$LABELS" | grep -Fxq "branch-2.0"; then+ echo "branch-2-0=true" >> $GITHUB_OUTPUT+ else+ echo "branch-2-0=false" >> $GITHUB_OUTPUT+ fi++ 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.ymlwith:- target-branch: branch-1.2+ target-branch: branch-1.3commit-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-3:+ cherry-pick-branch-2-0:needs: detect-cherry-pick-labels- if: needs.detect-cherry-pick-labels.outputs.branch-1-3 == 'true'+ if: needs.detect-cherry-pick-labels.outputs.branch-2-0 == 'true'uses: ./.github/workflows/cherry-pick-branch.ymlwith:- target-branch: branch-1.3+ target-branch: branch-2.0commit-sha: ${{ needs.detect-cherry-pick-labels.outputs.commit-sha }}commit-message: ${{ needs.detect-cherry-pick-labels.outputs.commit-message }}secrets: inherit