ai-inference  by actions

AI inference for GitHub Actions

Created 10 months ago
438 stars

Top 68.1% on SourcePulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This action enables the use of AI models within GitHub Actions workflows, allowing developers to integrate AI-powered tasks directly into their CI/CD pipelines. It targets developers and teams looking to automate tasks like code summarization, text generation, or data analysis using AI models hosted on GitHub Models.

How It Works

The action leverages a YAML-based configuration for prompts, supporting both simple text and structured .prompt.yml files. These structured files allow for templating, custom model selection, and JSON schema-based response formatting. It integrates with GitHub's Model Context Protocol (MCP) to grant AI models access to GitHub tools for repository management and issue tracking.

Quick Start & Requirements

  • Primary install/run command: uses: actions/ai-inference@v1
  • Prerequisites: permissions: models: read
  • For MCP integration: enable-github-mcp: true and potentially token and github-mcp-token (e.g., secrets.USER_PAT).
  • Documentation: GitHub Models

Highlighted Details

  • Supports templating and JSON schema responses via .prompt.yml files.
  • Integrates with GitHub's Model Context Protocol (MCP) for tool access.
  • Can read responses from files for outputs exceeding action limits.
  • Includes a script/release helper for managing GitHub Actions releases.

Maintenance & Community

  • Contributions are welcome via the Contributor's Guide.
  • Versioning follows GitHub Actions best practices.

Licensing & Compatibility

  • License: MIT
  • Compatible with commercial use and closed-source linking.

Limitations & Caveats

The action requires specific models: read permissions for GitHub Models. While it supports large responses via response-file, the default max-tokens is 200, which may require explicit configuration for more extensive outputs.

Health Check
Last Commit

1 day ago

Responsiveness

Inactive

Pull Requests (30d)
14
Issues (30d)
2
Star History
17 stars in the last 30 days

Explore Similar Projects

Starred by Eric Zhu Eric Zhu(Coauthor of AutoGen; Research Scientist at Microsoft Research).

gh-aw by github

15.6%
4k
Agentic workflows for GitHub automation
Created 6 months ago
Updated 23 hours ago
Starred by Matt Schrage Matt Schrage(Cofounder of Fig), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
2 more.

amazon-q-developer-cli by aws

0.3%
2k
CLI tool for agentic terminal interactions using natural language
Created 1 year ago
Updated 3 weeks ago
Feedback? Help us improve.