[7.0.0] Make bind
use repo mapping
#386
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cherry-picker | |
on: | |
pull_request_target: | |
types: [closed] | |
issues: | |
types: [closed, milestoned] | |
env: | |
GH_TOKEN: ${{ secrets.BAZEL_IO_TOKEN }} | |
jobs: | |
cherry-picker-on-closed: | |
if: github.event.action == 'closed' && github.event.sender.login == 'copybara-service[bot]' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@6b3083af2869dc3314a0257a42f4af696cc79ba3 | |
with: | |
egress-policy: audit | |
- if: github.event.pull_request | |
name: Run cherrypicker on closed PR | |
uses: bazelbuild/continuous-integration/actions/cherry_picker@7ac1c0cf5f381b9de993a3540c4de17f4751818e | |
with: | |
triggered-on: closed | |
pr-number: ${{ github.event.number }} | |
is-prod: True | |
- if: github.event.issue | |
name: Run cherrypicker on closed issue | |
uses: bazelbuild/continuous-integration/actions/cherry_picker@7ac1c0cf5f381b9de993a3540c4de17f4751818e | |
with: | |
triggered-on: closed | |
pr-number: ${{ github.event.issue.number }} | |
is-prod: True | |
cherry-picker-on-milestoned: | |
if: github.event.action == 'milestoned' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@6b3083af2869dc3314a0257a42f4af696cc79ba3 | |
with: | |
egress-policy: audit | |
- if: startsWith(github.event.issue.body, 'Forked from') | |
name: Run cherrypicker on comment | |
uses: bazelbuild/continuous-integration/actions/cherry_picker@7ac1c0cf5f381b9de993a3540c4de17f4751818e | |
with: | |
triggered-on: commented | |
pr-number: ${{ github.event.issue.body }} | |
milestone-title: ${{ github.event.milestone.title }} | |
milestoned-issue-number: ${{ github.event.issue.number }} | |
is-prod: True | |
- if: startsWith(github.event.issue.body, '### Commit IDs') | |
name: Run cherrypicker on demand | |
uses: bazelbuild/continuous-integration/actions/cherry_picker@7ac1c0cf5f381b9de993a3540c4de17f4751818e | |
with: | |
triggered-on: ondemand | |
milestone-title: ${{ github.event.milestone.title }} | |
milestoned-issue-number: ${{ github.event.issue.number }} | |
issue-title: ${{ github.event.issue.title }} | |
issue-body: ${{ github.event.issue.body }} | |
is-prod: True |