A GitHub Action workflow that takes any Daily Update discussion and posts about it in your Slack channel.
- Ensure you have a workflow file defined in your repo where you want to use this action. The following example can be inserted into your workflow and customized to your needs:
- name: Run my action
uses: inkblotty/daily-update-action@main
with:
discussion_id: 989
owner: inkblotty
repo: daily-update
slack_channel_id: ABC123456XYZ
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
-
Add the
add-to-daily-update
label to any issues or discussions that you want in the update.- Note that Office Hours and Team Show & Support reminders are handled for you
-
Add metadata to the comment you want to appear in the Daily Update:
<div visibility="hidden" data-daily-update="true"></div>
The Personal Access Token with access to the repository being queried for updates.
The Slack Token with access to the channel where Daily Update comments are made.
The organization or user owning the repo.
The repo to query for updates.
The ID of the discussion where full Daily Update comments are posted.
The Slack channel where Daily Update comments are posted.