mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 13:24:19 +00:00
0acb743dac
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [2428392/gh-truncate-string-action](https://redirect.github.com/2428392/gh-truncate-string-action) | action | patch | `v1.4.0` -> `v1.4.1` | --- ### Release Notes <details> <summary>2428392/gh-truncate-string-action (2428392/gh-truncate-string-action)</summary> ### [`v1.4.1`](https://redirect.github.com/2428392/gh-truncate-string-action/releases/tag/v1.4.1) [Compare Source](https://redirect.github.com/2428392/gh-truncate-string-action/compare/v1.4.0...v1.4.1) #### What's Changed - update action.yml inputs to include truncationSymbol by [@​aballman](https://redirect.github.com/aballman) in [https://github.com/2428392/gh-truncate-string-action/pull/14](https://redirect.github.com/2428392/gh-truncate-string-action/pull/14) #### New Contributors - [@​aballman](https://redirect.github.com/aballman) made their first contribution in [https://github.com/2428392/gh-truncate-string-action/pull/14](https://redirect.github.com/2428392/gh-truncate-string-action/pull/14) **Full Changelog**: https://github.com/2428392/gh-truncate-string-action/compare/v1...v1.4.1 </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:eyJjcmVhdGVkSW5WZXIiOiIzOS43Mi41IiwidXBkYXRlZEluVmVyIjoiMzkuNzIuNSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
name: Release Actions
|
|
|
|
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@b3ff790d21cf42af3ca7579146eedb93c8fb0757 # v1.4.1
|
|
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 }}
|