From caa863c0f24c1edde77961ab96b6c5126c1cb536 Mon Sep 17 00:00:00 2001 From: ernestognw Date: Tue, 3 Jan 2023 11:40:58 -0600 Subject: [PATCH] Add cherry-pick script --- .github/workflows/cherry-pick-fix.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/cherry-pick-fix.yml diff --git a/.github/workflows/cherry-pick-fix.yml b/.github/workflows/cherry-pick-fix.yml new file mode 100644 index 00000000000..e71615498a1 --- /dev/null +++ b/.github/workflows/cherry-pick-fix.yml @@ -0,0 +1,27 @@ +name: Cherry Pick Fix + +on: + workflow_dispatch: + inputs: + commit: + description: 'Commit to pick from master' + required: true + type: string + +jobs: + build: + runs-on: ubuntu-latest + if: ${{ contains(github.ref_name, 'release-v') }} + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Set up environment + uses: ./.github/actions/setup + - run: bash scripts/git-user-config.sh +<<<<<<< HEAD +======= + - run: git fetch -- +>>>>>>> 9b519255 (Add cherry-pick script) + - run: git cherry-pick ${{ inputs.commit }} + - run: git push --all origin