From e9d7c9c9aeeb29857b6b657378c9cb7707f3a5ee Mon Sep 17 00:00:00 2001 From: Narin Ratana Date: Thu, 26 Oct 2023 10:38:15 -0700 Subject: [PATCH] Test unfurl --- .github/workflows/publish-package.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 59b16c72..49c327c5 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -43,7 +43,6 @@ jobs: id: bump-version run: | NPM_PACKAGE=$(jq -r .name package.json) - echo "NPM_PACKAGE_NAME=$NPM_PACKAGE" >> "$GITHUB_OUTPUT" echo "NPM Package name: $NPM_PACKAGE" CURRENT_VERSION=$(jq -r .version package.json) @@ -56,7 +55,6 @@ jobs: npm version $LATEST_VERSION fi - BUMP=${{ inputs.version_bump }} echo "Bumping version: $BUMP" if [[ "$BUMP" == "alpha" ]] || [[ "$BUMP" == "beta" ]]; then @@ -70,6 +68,7 @@ jobs: NEW_VERSION=$(jq -r .version package.json) echo "Updated version: $NEW_VERSION" + echo "NPM_PACKAGE_NAME=$NPM_PACKAGE" >> "$GITHUB_OUTPUT" echo "NEW_VERSION=$NEW_VERSION" >> "$GITHUB_OUTPUT" echo "GIT_TAG=${{ inputs.package }}-v$NEW_VERSION" >> "$GITHUB_OUTPUT" - name: Commit package.json changes and tag @@ -90,8 +89,7 @@ jobs: # Slack channel id, channel name, or user id to post message. # See also: https://api.slack.com/methods/chat.postMessage#channels # You can pass in multiple channels to post to by providing a comma-delimited list of channel IDs. - channel-id: C022SV53ASZ # C05DQPHUVNZ - # For posting a simple plain text message + channel-id: C062ZNXP9DG # alerts C022SV53ASZ # shared-systems C05DQPHUVNZ payload: | { "blocks": [ @@ -99,7 +97,9 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "${{ steps.bump-version.outputs.NEW_VERSION }} of ${{ steps.bump-version.outputs.NPM_PACKAGE_NAME }} has been published to NPM \n • \n • " + "text": "${{ steps.bump-version.outputs.NEW_VERSION }} of ${{ steps.bump-version.outputs.NPM_PACKAGE_NAME }} has been published to NPM \n • \n • " + "unfurl_links": false, + "unfurl_media": false } } ]