Adjust to bazelbuild's repository from iancha1992's repository for the cherry-pick bot and also fix to trigger the cherry-pick on close only when the "copybara-service[bot]" closes it.
PiperOrigin-RevId: 561380792
Change-Id: I47f3ea817f406999a3987279f494f47eac443f6d
diff --git a/.github/workflows/cherry-picker-on-close.yml b/.github/workflows/cherry-picker-on-close.yml
index 56777ff..00b83fe 100644
--- a/.github/workflows/cherry-picker-on-close.yml
+++ b/.github/workflows/cherry-picker-on-close.yml
@@ -9,13 +9,11 @@
jobs:
cherry-picker-on-close:
- # if: github.event.pull_request.user.login == 'copybara'
+ if: github.event.sender.login == 'copybara-service[bot]'
runs-on: ubuntu-latest
steps:
- - name: Logging github event
- run: echo '${{ toJSON(github.event) }}' | jq
- name: Run cherrypicker on close
- uses: iancha1992/continuous-integration/actions/cherry-picker@feature-cherrypick
+ uses: bazelbuild/continuous-integration/actions/cherry-picker@master
with:
triggered-on: closed
pr-number: ${{ github.event.number }}
diff --git a/.github/workflows/cherry-picker-on-comment.yml b/.github/workflows/cherry-picker-on-comment.yml
index bf44604..2b3dc3d 100644
--- a/.github/workflows/cherry-picker-on-comment.yml
+++ b/.github/workflows/cherry-picker-on-comment.yml
@@ -12,10 +12,8 @@
if: startsWith(github.event.issue.body, 'Forked from')
runs-on: ubuntu-latest
steps:
- - name: Logging github event
- run: echo '${{ toJSON(github.event) }}' | jq
- name: Run cherrypicker on comment
- uses: iancha1992/continuous-integration/actions/cherry-picker@feature-cherrypick
+ uses: bazelbuild/continuous-integration/actions/cherry-picker@master
with:
triggered-on: commented
pr-number: ${{ github.event.issue.body }}