Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Update release action to choose between preview and stable URL in Discord announcements
Joseph T. Lyonsb8690ec1d1df
diff --git a/.github/workflows/release_actions.yml b/.github/workflows/release_actions.ymlindex 6c3b3d57c0b..f767324e4f6 100644--- a/.github/workflows/release_actions.yml+++ b/.github/workflows/release_actions.yml@@ -6,6 +6,16 @@ jobs:discord_release:runs-on: ubuntu-lateststeps:+ - name: Get appropriate URL+ id: get-appropriate-url+ run: |+ if [ "${{ github.event.release.prerelease }}" == "true" ]; then+ URL="https://zed.dev/releases/preview/latest"+ else+ URL="https://zed.dev/releases/stable/latest"+ fi+ echo "::set-output name=URL::$URL"+- name: Discord Webhook Actionuses: tsickert/[email protected]with:@@ -13,6 +23,6 @@ jobs:content: |📣 Zed ${{ github.event.release.tag_name }} was just released!- Restart your Zed or head to https://zed.dev/releases/stable/latest to grab it.+ Restart your Zed or head to ${{ steps.get-appropriate-url.outputs.URL }} to grab it.${{ github.event.release.body }}