Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 036b69c

Browse files
committed
slack
Signed-off-by: leecalcote <leecalcote@gmail.com>
1 parent 49c4c92 commit 036b69c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/slack.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Slack Notify on Star
2+
on: watch
3+
jobs:
4+
star-notify:
5+
name: Notify Slack on star
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Get current star count
9+
run: |
10+
echo ::set-env name=STARS::$(curl --silent 'https://api.github.com/repos/layer5io/meshery-cpx' -H 'Accept: application/vnd.github.preview' | jq '.watchers_count')
11+
- name: Notify slack
12+
env:
13+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
14+
uses: pullreminders/slack-action@master
15+
with:
16+
args: '{\"channel\":\"CSK7N9TGX\",\"text\":\"Someone just starred Meshery Adapter for Citrix Service Mesh! (https://github.com/layer5io/meshery-cpx/stargazers) Total ⭐️: ${{env.STARS}}\"}'

0 commit comments

Comments
 (0)