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
10
.github/workflows/publish-package-to-npm.yml
vendored
10
.github/workflows/publish-package-to-npm.yml
vendored
|
@ -10,7 +10,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# Checkout to target branch
|
# Checkout to target branch
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
# Pull submodules
|
# Pull submodules
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
|
@ -46,9 +46,11 @@ jobs:
|
||||||
notify:
|
notify:
|
||||||
needs: publish
|
needs: publish
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
GITHUB_LINK: ${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ github.ref_name }}
|
||||||
steps:
|
steps:
|
||||||
# Checkout to target branch
|
# Checkout to target branch
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Get package info
|
- name: Get package info
|
||||||
id: package
|
id: package
|
||||||
|
@ -58,6 +60,6 @@ jobs:
|
||||||
uses: codex-team/action-codexbot-notify@v1
|
uses: codex-team/action-codexbot-notify@v1
|
||||||
with:
|
with:
|
||||||
webhook: ${{ secrets.CODEX_BOT_NOTIFY_EDITORJS_PUBLIC_CHAT }}
|
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'
|
parse_mode: 'markdown'
|
||||||
disable_web_page_preview: true
|
disable_web_page_preview: true
|
Loading…
Reference in a new issue