mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-03 08:54:04 +00:00
Update release action to choose between preview and stable URL in Discord announcements
This is what ChatGPT told me, so we'll see.
This commit is contained in:
parent
1c2f5162bc
commit
75365249cc
1 changed files with 11 additions and 1 deletions
12
.github/workflows/release_actions.yml
vendored
12
.github/workflows/release_actions.yml
vendored
|
@ -6,6 +6,16 @@ jobs:
|
||||||
discord_release:
|
discord_release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- 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 Action
|
- name: Discord Webhook Action
|
||||||
uses: tsickert/discord-webhook@v5.3.0
|
uses: tsickert/discord-webhook@v5.3.0
|
||||||
with:
|
with:
|
||||||
|
@ -13,6 +23,6 @@ jobs:
|
||||||
content: |
|
content: |
|
||||||
📣 Zed ${{ github.event.release.tag_name }} was just released!
|
📣 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 }}
|
${{ github.event.release.body }}
|
||||||
|
|
Loading…
Reference in a new issue