mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-26 10:40:54 +00:00
d54818fd9e
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [2428392/gh-truncate-string-action](https://togithub.com/2428392/gh-truncate-string-action) | action | minor | `v1.3.0` -> `v1.4.0` | --- ### Release Notes <details> <summary>2428392/gh-truncate-string-action (2428392/gh-truncate-string-action)</summary> ### [`v1.4.0`](https://togithub.com/2428392/gh-truncate-string-action/releases/tag/v1.4.0) [Compare Source](https://togithub.com/2428392/gh-truncate-string-action/compare/v1.3.0...v1.4.0) #### What's Changed - feat: update nodejs to version 20 by [@​psilore](https://togithub.com/psilore) in [https://github.com/2428392/gh-truncate-string-action/pull/11](https://togithub.com/2428392/gh-truncate-string-action/pull/11) #### New Contributors - [@​psilore](https://togithub.com/psilore) made their first contribution in [https://github.com/2428392/gh-truncate-string-action/pull/11](https://togithub.com/2428392/gh-truncate-string-action/pull/11) **Full Changelog**: https://github.com/2428392/gh-truncate-string-action/compare/v1.3.0...v1.4.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 3pm on Wednesday" in timezone America/New_York, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- Release Notes: - N/A <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
on:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
discord_release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Get release URL
|
|
id: get-release-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: Get content
|
|
uses: 2428392/gh-truncate-string-action@e6b5885fb83c81ca9a700a91b079baec2133be3e # v1.4.0
|
|
id: get-content
|
|
with:
|
|
stringToTruncate: |
|
|
📣 Zed [${{ github.event.release.tag_name }}](<${{ steps.get-release-url.outputs.URL }}>) was just released!
|
|
|
|
${{ github.event.release.body }}
|
|
maxLength: 2000
|
|
truncationSymbol: "..."
|
|
- name: Discord Webhook Action
|
|
uses: tsickert/discord-webhook@c840d45a03a323fbc3f7507ac7769dbd91bfb164 # v5.3.0
|
|
with:
|
|
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
|
content: ${{ steps.get-content.outputs.string }}
|