From 5b603f38746c7c360c60435271b7843f17b8d61a Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Tue, 5 Jul 2022 21:21:19 -0700 Subject: [PATCH] Installing cherry-pick bot (#20340) * Adding cherry-pick bot (and moving restyled) * Updating this to reflect the correct branches for the main repo --- .restyled.yaml => .github/.restyled.yaml | 0 .github/workflows/cherry-picks.yaml | 37 ++++++++++++++++++++++++ 2 files changed, 37 insertions(+) rename .restyled.yaml => .github/.restyled.yaml (100%) create mode 100644 .github/workflows/cherry-picks.yaml diff --git a/.restyled.yaml b/.github/.restyled.yaml similarity index 100% rename from .restyled.yaml rename to .github/.restyled.yaml diff --git a/.github/workflows/cherry-picks.yaml b/.github/workflows/cherry-picks.yaml new file mode 100644 index 00000000000000..34e04800ead226 --- /dev/null +++ b/.github/workflows/cherry-picks.yaml @@ -0,0 +1,37 @@ +name: Cherry-Pick Merges + +on: + pull_request: + branches: + - master + types: ["closed"] + +jobs: + cherry_pick_release_v1_0: + runs-on: ubuntu-latest + name: Cherry-Pick into SVE + if: | + (github.event.pull_request.merged == true) + && ( + (contains(github.event.pull_request.labels.*.name, 'sve')) + || (contains(github.event.pull_request.labels.*.name, 'cert blocker')) + || (contains(github.event.pull_request.labels.*.name, 'spec')) + || (contains(github.event.pull_request.labels.*.name, 'platform')) + || (contains(github.event.pull_request.labels.*.name, 'darwin')) + || (contains(github.event.pull_request.labels.*.name, 'android')) + || (contains(github.event.pull_request.labels.*.name, 'sve cherry-pick')) + ) + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Cherry-Pick into sve branch + uses: carloscastrojumo/github-cherry-pick-action@v1.0.1 + with: + branch: sve + reviewers: | + woody-apple + andy31415 +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}