Skip to content

subhamay-bhattacharyya-gha/github-action-template

Repository files navigation

GitHub Action Template Repository

Commit Activity Last Commit Release Date Repo Size File Count Issues Top Language Custom Endpoint

A Template GitHub Repository to be used to create a composite action.

Action Name

Action Description

This GitHub Action provides a reusable composite workflow that sets up Python and interacts with the GitHub API to post a comment on an issue, including a link to a created branch.


Inputs

Name Description Required Default
input-1 Input description. No default-value
input-2 Input description. No default-value
input-3 Input description. No default-value
github-token GitHub token. Used for API authentication. Yes

Example Usage

name: Example Workflow

on:
  issues:
    types: [opened]

jobs:
  example:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Run Custom Action
        uses: your-org/your-action-repo@v1
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          input-1: your-value
          input-2: another-value
          input-3: something-else

License

MIT