mirror of
https://github.com/zed-industries/zed.git
synced 2026-07-09 16:00:35 +00:00
ci: Fix push permissions for cherry-pick workflow (#60673)
Release Notes: - N/A
This commit is contained in:
parent
9b4598f708
commit
55b776183d
2 changed files with 6 additions and 5 deletions
9
.github/workflows/cherry_pick.yml
vendored
9
.github/workflows/cherry_pick.yml
vendored
|
|
@ -27,10 +27,6 @@ jobs:
|
|||
run_cherry_pick:
|
||||
runs-on: namespace-profile-2x4-ubuntu-2404
|
||||
steps:
|
||||
- name: steps::checkout_repo
|
||||
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
|
||||
with:
|
||||
clean: false
|
||||
- id: generate-token
|
||||
name: steps::authenticate_as_zippy
|
||||
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859
|
||||
|
|
@ -40,6 +36,11 @@ jobs:
|
|||
permission-contents: write
|
||||
permission-workflows: write
|
||||
permission-pull-requests: write
|
||||
- name: steps::checkout_repo
|
||||
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
|
||||
with:
|
||||
clean: false
|
||||
token: ${{ steps.generate-token.outputs.token }}
|
||||
- name: cherry_pick::run_cherry_pick::cherry_pick
|
||||
run: ./script/cherry-pick "$BRANCH" "$COMMIT" "$CHANNEL"
|
||||
env:
|
||||
|
|
|
|||
|
|
@ -59,8 +59,8 @@ fn run_cherry_pick(
|
|||
named::job(
|
||||
Job::default()
|
||||
.runs_on(runners::LINUX_SMALL)
|
||||
.add_step(steps::checkout_repo())
|
||||
.add_step(authenticate)
|
||||
.add_step(steps::checkout_repo().with_token(&token))
|
||||
.add_step(cherry_pick(branch, commit, channel, &token)),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue