Skip to content

Example Action

Example Action #11

Workflow file for this run

name: Example Action
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
generate:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- name: Set Date
run: echo "DATE=$(date "+%m/%d/%Y")" >> $GITHUB_ENV
- uses: actions/checkout@v3
- name: Generate new discussion
id: create-discussion
uses: abirismyname/[email protected]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
title: "New Discussion ${{ env.DATE }} in General"
body: |
Let's Discuss!
repository-id: 'R_kgDOG-yfvw'
category-id: 'DIC_kwDOG-yfv84CRQpR'
- name: Generate new discussion using file
id: create-discussion-with-file
uses: abirismyname/[email protected]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
title: "New Discussion ${{ env.DATE }} in General"
body-filepath: 'zen.txt'
repository-id: 'R_kgDOG-yfvw'
category-id: 'DIC_kwDOG-yfv84CRQpR'