diff --git a/.github/workflows/simple-cherry-pick.yaml b/.github/workflows/simple-cherry-pick.yaml new file mode 100644 index 0000000000..a2dabba22b --- /dev/null +++ b/.github/workflows/simple-cherry-pick.yaml @@ -0,0 +1,19 @@ +name: Cherry Pick On Comment +on: + issue_comment: + types: [created] +jobs: + cherry-pick: + name: Cherry Pick #test comments 2222 + if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/cherry-pick') + runs-on: ubuntu-latest + steps: + - name: Checkout the latest code + uses: actions/checkout@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 0 # otherwise, you will fail to push refs to dest repo + - name: Automatic Cherry Pick + uses: tier4/simple-cherry-pick@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}