Skip to content

Commit

Permalink
add publish version
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankcorn committed Dec 14, 2023
1 parent 740e896 commit 300c85f
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,39 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


notify-community:
needs: [create-release]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get version from tag
id: tag_name
run: |
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
- name: Post to the community Slack channel
uses: slackapi/[email protected]
with:
channel-id: 'C04KT9JNRHS'
payload: |
{
"text": "[Release] Baselime Opentelemetry for Node.JS v${{ steps.tag_name.outputs.current_version }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*[Release] Baselime Opentelemetry for Node.JS v${{ steps.tag_name.outputs.current_version }}*"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "<https://github.com/Baselime/node-opentelemetry/releases/tag/v${{ steps.tag_name.outputs.current_version }}|https://github.com/Baselime/node-opentelemetry/releases/tag/v${{ steps.tag_name.outputs.current_version }}>"
}
}
]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit 300c85f

Please sign in to comment.