GitHub Action Description.
In your workflow, to use this github action add a step like this to your workflow:
- name: Run github-action
uses: wesleyscholl/github-action@v1.0.0
id: github-action
with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" # Required/optional - Description
input1: "string" # Required/optional - Description
input2: 10 # Required/optional - Description
Subscribing to GitHub events to kick off GitHub action workflows:
on:
discussion:
types: [created]
Description about requirements to run this GitHub Action.
Configure:
-
Option 1
-
Option 2
-
Option 3
-
More detailed configuration step.
Name | Description | Requried? | Default |
---|---|---|---|
GITHUB_TOKEN |
Ensure you create a PAT with discussion: write and repo: write , then add it as an github action secret in your repo. |
No | ${{ secrets.GITHUB_TOKEN }} |
comment_body |
The contents of the autoresponder comment in string format. | No | "This comment was generated by the Discussion Autoresponder GitHub Action." |
Name | Description | How To Access |
---|---|---|
ghaVar1 |
Description about output1. | ${{ steps.<your-step>.outputs.variable1}} |
ghaVar1 |
Description about output2. | ${{ steps.<your-step>.outputs.variable2 }} |
- name: Show Outputs
run: |
echo "variable1 = ${{ steps.<your-step>.outputs.variable1 }}"
echo "variable2 = ${{ steps.<your-step>.outputs.variable2 }}"
Example workflow
*If you fork this repository, ensure you enable workflows in the workflows tab.