Skip to content

Commit

Permalink
Create workflow for new comment digest
Browse files Browse the repository at this point in the history
  • Loading branch information
jimchamp committed Jan 17, 2024
1 parent 5a2ce14 commit 2bc82f1
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/new_comment_digest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: new_comment_digest
on:
schedule: # 08:30 daily
- cron: '30 8 * * *'
workflow_dispactch: # This job can also be run on-demand (is this needed?)
permissions:
contents: read # Is this needed?

jobs:
new_comment_digest:
runs-on: ubuntu-latest
steps:
env:
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL_ABC_TEAM_PLUS }}
- uses: actions/checkout@4
- uses: actions/setup-python@4
with:
python-version: 3.x
- run: pip install requests
- run: scripts/gh_scripts/issue_comment_bot.py 24 "$SLACK_CHANNEL" "$SLACK_TOKEN"

0 comments on commit 2bc82f1

Please sign in to comment.