Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
cli: Add GitHub token to `generate_message` step (#47876)
Finn Evers308537f4adf7
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex c5f21214c89..0089b5e423d 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -642,6 +642,8 @@ jobs:)echo "message=$MESSAGE" >> "$GITHUB_OUTPUT"shell: bash -euxo pipefail {0}+ env:+ GH_TOKEN: ${{ github.token }}- name: release::send_slack_messagerun: |curl -X POST -H 'Content-type: application/json'\diff --git a/tooling/xtask/src/tasks/workflows/release.rs b/tooling/xtask/src/tasks/workflows/release.rsindex df6474f65b7..3b99926a08c 100644--- a/tooling/xtask/src/tasks/workflows/release.rs+++ b/tooling/xtask/src/tasks/workflows/release.rs@@ -1,4 +1,4 @@-use gh_workflow::{Event, Expression, Push, Run, Step, Use, Workflow};+use gh_workflow::{Event, Expression, Push, Run, Step, Use, Workflow, ctx::Context};use indoc::formatdoc;use crate::tasks::workflows::{@@ -344,7 +344,9 @@ fn generate_slack_message(expression: String) -> (Step<Run>, StepOutput) {echo "message=$MESSAGE" >> "$GITHUB_OUTPUT""#};- let generate_step = named::bash(&script).id("generate-webhook-message");+ let generate_step = named::bash(&script)+ .id("generate-webhook-message")+ .add_env(("GH_TOKEN", Context::github().token()));let output = StepOutput::new(&generate_step, "message");