generated from austenstone/action-typescript
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
slack.yml
21 lines (20 loc) · 780 Bytes
/
slack.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: Seat Count Slack Notification
on:
schedule:
- cron: 0 0 * * *
jobs:
seat-count-slack:
uses: austenstone/seat-count-action/.github/workflows/slack.yml@main
with:
org: octodemo
# Slack channel id, channel name, or user id to post message.
# See: https://api.slack.com/methods/chat.postMessage#channels
slack-channel-id: 'C040LDABVHQ'
seats-remaining: 10
secrets:
# A GitHub PAT
# See: https://docs.github.com/en/enterprise-cloud@latest/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
github-token: ${{ secrets.TOKEN }}
# A slack bot token
# See: https://github.com/marketplace/actions/slack-send#setup-1
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}