Potentially fix invocation of draft-release-notes (#20265)

Conrad Irwin created

Release Notes:

- N/A

Change summary

.github/workflows/ci.yml         | 2 +-
script/determine-release-channel | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)

Detailed changes

.github/workflows/ci.yml 🔗

@@ -260,7 +260,7 @@ jobs:
         run: |
           mkdir -p target/
           # Ignore any errors that occur while drafting release notes to not fail the build.
-          script/draft-release-notes "$version" "$channel" > target/release-notes.md || true
+          script/draft-release-notes "$RELEASE_VERSION" "$RELEASE_CHANNEL" > target/release-notes.md || true
 
       - name: Generate license file
         run: script/generate-licenses

script/determine-release-channel 🔗

@@ -15,6 +15,7 @@ version=$(script/get-crate-version zed)
 channel=$(cat crates/zed/RELEASE_CHANNEL)
 echo "Publishing version: ${version} on release channel ${channel}"
 echo "RELEASE_CHANNEL=${channel}" >> $GITHUB_ENV
+echo "RELEASE_VERSION="${version}" >> $GITHUB_ENV
 
 expected_tag_name=""
 case ${channel} in