mirror of
https://github.com/codex-team/editor.js
synced 2024-06-10 09:52:36 +02:00
Added a github link to codex bot release notification (#2527)
* Added a github link to codex bot release notification * Url now depends on type of release * Removed unnecessary condition * fixed indentation
This commit is contained in:
parent
92ccfc5317
commit
af6b64a3e6
8
.github/workflows/publish-package-to-npm.yml
vendored
8
.github/workflows/publish-package-to-npm.yml
vendored
|
@ -10,7 +10,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# Checkout to target branch
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
# Pull submodules
|
||||
submodules: 'recursive'
|
||||
|
@ -46,9 +46,11 @@ jobs:
|
|||
notify:
|
||||
needs: publish
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GITHUB_LINK: ${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ github.ref_name }}
|
||||
steps:
|
||||
# Checkout to target branch
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Get package info
|
||||
id: package
|
||||
|
@ -58,6 +60,6 @@ jobs:
|
|||
uses: codex-team/action-codexbot-notify@v1
|
||||
with:
|
||||
webhook: ${{ secrets.CODEX_BOT_NOTIFY_EDITORJS_PUBLIC_CHAT }}
|
||||
message: '📦 [${{ steps.package.outputs.name }}](${{ steps.package.outputs.npmjs-link }}) ${{ steps.package.outputs.version }} was published'
|
||||
message: '📦 [${{ steps.package.outputs.name }} ${{ steps.package.outputs.version }}](${{ env.GITHUB_LINK }}) was published'
|
||||
parse_mode: 'markdown'
|
||||
disable_web_page_preview: true
|
Loading…
Reference in a new issue