cherry_pick.yml

 1# Generated from xtask::workflows::cherry_pick
 2# Rebuild with `cargo xtask workflows`.
 3name: cherry_pick
 4run-name: 'cherry_pick to ${{ inputs.channel }} #${{ inputs.pr_number }}'
 5on:
 6  workflow_dispatch:
 7    inputs:
 8      commit:
 9        description: commit
10        required: true
11        type: string
12      branch:
13        description: branch
14        required: true
15        type: string
16      channel:
17        description: channel
18        required: true
19        type: string
20      pr_number:
21        description: pr_number
22        required: true
23        type: string
24jobs:
25  run_cherry_pick:
26    runs-on: namespace-profile-2x4-ubuntu-2404
27    steps:
28    - name: steps::checkout_repo
29      uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
30      with:
31        clean: false
32    - id: get-app-token
33      name: cherry_pick::run_cherry_pick::authenticate_as_zippy
34      uses: actions/create-github-app-token@bef1eaf1c0ac2b148ee2a0a74c65fbe6db0631f1
35      with:
36        app-id: ${{ secrets.ZED_ZIPPY_APP_ID }}
37        private-key: ${{ secrets.ZED_ZIPPY_APP_PRIVATE_KEY }}
38    - name: cherry_pick::run_cherry_pick::cherry_pick
39      run: ./script/cherry-pick ${{ inputs.branch }} ${{ inputs.commit }} ${{ inputs.channel }}
40      shell: bash -euxo pipefail {0}
41      env:
42        GIT_COMMITTER_NAME: Zed Zippy
43        GIT_COMMITTER_EMAIL: hi@zed.dev
44        GITHUB_TOKEN: ${{ steps.get-app-token.outputs.token }}