From 147f19e55bfd3ba1b37120d1e44374f8ebe9eb8e Mon Sep 17 00:00:00 2001 From: Vladisvell Date: Sun, 22 Dec 2024 15:29:01 +0500 Subject: [PATCH] allow testmerging to stable branch --- .github/workflows/testmerge.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/testmerge.yml b/.github/workflows/testmerge.yml index 4003d787e63..848d33267f8 100644 --- a/.github/workflows/testmerge.yml +++ b/.github/workflows/testmerge.yml @@ -5,10 +5,17 @@ concurrency: on: workflow_dispatch: - + inputs: + apply_to_stable: + description: 'Apply testmerge to stable branch' + type: boolean + required: true + default: false + env: BASE_BRANCH: master220 TESTMERGE_BRANCH: testmerge + STABLE_BRANCH: stable REQUIRED_LABEL: testmerge jobs: @@ -162,12 +169,16 @@ jobs: fi git push -f origin ${{ env.TESTMERGE_BRANCH }} - + + if [ ${{ inputs.apply_to_stable }} ] ; then + git push -f origin ${{ env.STABLE_BRANCH }} + fi + # Output the list of merged PRs echo "${MERGED_PRS[@]}" echo "merged_prs=${MERGED_PRS[@]}" >> $GITHUB_OUTPUT echo "END" - + #- name: Comment on merged PRs # uses: actions/github-script@v7 # with: