Please ignore. This is for testing. #58
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, opened] | |
env: | |
GH_TOKEN: ${{ secrets.NEW_IAN_CLASSIC_TOKEN }} | |
jobs: | |
cherry-picker-on-closed: | |
# if: github.event.action == 'closed' && github.event.sender.login == 'copybara-service[bot]' | |
if: github.event.action == 'closed' | |
runs-on: ubuntu-latest | |
steps: | |
- if: github.event.pull_request | |
name: Run cherrypicker on closed PR | |
uses: iancha1992/continuous-integration/actions/cherry_picker@feature-cherrypick-phase2 | |
with: | |
triggered-on: closed | |
pr-number: ${{ github.event.number }} | |
is-prod: False | |
- if: github.event.issue | |
name: Run cherrypicker on closed issue | |
uses: iancha1992/continuous-integration/actions/cherry_picker@feature-cherrypick-phase2 | |
with: | |
triggered-on: closed | |
pr-number: ${{ github.event.issue.number }} | |
is-prod: False | |
cherry-picker-on-milestoned: | |
if: github.event.action == 'milestoned' | |
runs-on: ubuntu-latest | |
steps: | |
- if: startsWith(github.event.issue.body, 'Forked from') | |
name: Run cherrypicker on comment | |
uses: iancha1992/continuous-integration/actions/cherry_picker@feature-cherrypick-phase2 | |
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: False | |
- if: startsWith(github.event.issue.body, '### Commit IDs') | |
name: Run cherrypicker on demand | |
uses: iancha1992/continuous-integration/actions/cherry_picker@feature-cherrypick-phase2 | |
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: False | |
# - name: Logging github event | |
# run: echo '${{ toJSON(github.event) }}' | jq |