Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix issues with drafting release notes in CI (#10955)

Marshall Bowers583a662ddc06
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7fa313d5ea6..b81becdeffc 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -173,6 +173,11 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4
with:
+ # We need to fetch more than one commit so that `script/draft-release-notes`
+ # is able to diff between the current and previous tag.
+ #
+ # 25 was chosen arbitrarily.
+ fetch-depth: 25
clean: false
submodules: "recursive"
@@ -206,7 +211,8 @@ jobs:
exit 1
fi
mkdir -p target/
- script/draft-release-notes "$version" "$channel" > target/release-notes.md
+ # 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
- name: Generate license file
run: script/generate-licenses