Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/actions/slack-notification/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ runs:
using: "composite"
steps:
- name: Send Slack notification
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2
uses: slackapi/slack-github-action@v2.0.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use the exact version hash for security reasons

with:
channel-id: ${{ inputs.channel-id }}
slack-message: ${{ inputs.message }}
env:
SLACK_BOT_TOKEN: ${{ inputs.bot-token }}
method: chat.postMessage
token: ${{ inputs.bot-token }}
payload: |
channel: "${{ inputs.channel-id }}"
text: "${{ inputs.message }}"
29 changes: 29 additions & 0 deletions .github/workflows/send-a-slack-message.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Send a Slack Message
Copy link
Collaborator Author

@stelselim stelselim Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only for testing, the action file should be removed after review/test


on:
pull_request:
branches: [master, release/*]

jobs:
releases:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "16"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's use the version from the nvmrc, which i think is 24


- name: Send Slack Notification
if: success()
uses: ./.github/actions/slack-notification
with:
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
message: |
🚀 *New Native Template Version Released*

A new version of Native Template has been released with updated version compatibility information.

Please review the PR for more details: ${{ github.server_url }}/${{ github.repository }}/pull/${{ steps.pr.outputs.number }}