This action creates a GitHub repository discussion from a MD template.
Optional The discussion categury to create the discussion in. Default "General"
.
Optional The filepath to the markdown template for the discussion. Default "./.github/DISCUSSION_TEMPLATE.md"
.
Optional The content of the discussion body as a string. Either discussion-body
or the filename
should be passed
Optional This text will replace any instances of @PLACEHOLDER_TEXT in the discussion body
Required The title of the discussion to be created.
Optional Pass true
to include the date at the end of the discussion title (i.e. My Discussion for the week of Thursday, May 6th, 2021
). Default is not to include the date.
N/A.
- name: Create discussion
id: create_discussion
uses: keisaacson/create-a-discussion@v0.0.0
env:
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
DISCUSSIONS_TOKEN: ${{ secrets.GH_DISCUSSIONS_TOKEN }}
with:
category: "Show and tell"
filename: "./.github/DEMO_DISCUSSION_TEMPLATE.md"
title: "Demos for the week of "
title-date: true