Skip to content

Create .gitkeep

Create .gitkeep #27

name: call-comment-on-gist

Check failure on line 1 in .github/workflows/call-comment-on-gist.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/call-comment-on-gist.yml

Invalid workflow file

(Line: 48, Col: 21): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.GH_PAT
on:
workflow_dispatch:
inputs:
gist_id:
description: 'The ID of the gist to comment on'
required: true
type: string
content_source:
description: 'Source of comment content'
required: true
type: choice
options:
- file
- release
- issue
- direct
file_path:
description: 'Path to file (when content_source is file)'
required: false
type: string
release_tag:
description: 'Release tag (when content_source is release)'
required: false
type: string
issue_number:
description: 'Issue number (when content_source is issue)'
required: false
type: string
comment_text:
description: 'Direct comment text (when content_source is direct)'
required: false
type: string
jobs:
comment:
uses: devinschumacher/workflows/.github/workflows/comment-on-gist.yml@main
with:
gist_id: ${{ github.event.inputs.gist_id }}
content_source: ${{ github.event.inputs.content_source }}
file_path: ${{ github.event.inputs.file_path }}
release_tag: ${{ github.event.inputs.release_tag }}
issue_number: ${{ github.event.inputs.issue_number }}
comment_text: ${{ github.event.inputs.comment_text }}
# IMPORTANT: Replace GH_PAT with your secret name
# This secret must exist in your repository
github_token: ${{ secrets.GH_PAT }}