From af6b64a3e61ffab3f3d4e783615624edf72db68f Mon Sep 17 00:00:00 2001 From: Gusev Yaroslav <59017579+GoldenJaden@users.noreply.github.com> Date: Mon, 6 Nov 2023 19:00:19 +0300 Subject: [PATCH] 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 --- .github/workflows/publish-package-to-npm.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-package-to-npm.yml b/.github/workflows/publish-package-to-npm.yml index ae926224..41d5131e 100644 --- a/.github/workflows/publish-package-to-npm.yml +++ b/.github/workflows/publish-package-to-npm.yml @@ -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 + disable_web_page_preview: true \ No newline at end of file