Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Aug 5, 2025

This PR updates the translation workflow to use the official @actions/ai-inference action instead of the custom FidelusAleksander/prompt-action@v1.

Changes Made

  • Action Reference: Updated from FidelusAleksander/prompt-action@v1 to actions/ai-inference@v1
  • Output Reference: Updated output name from steps.translate.outputs.text to steps.translate.outputs.response

Technical Details

The @actions/ai-inference action provides the same functionality as the custom prompt-action but with standardized output naming conventions. The key difference is that AI inference results are returned via the response output instead of text.

All other workflow parameters remain unchanged:

  • system-prompt: Continues to use the built system prompt from the template
  • prompt-file: Continues to use the input file path for translation

Validation

  • ✅ YAML syntax validation passes
  • ✅ Hugo site builds successfully
  • ✅ Workflow structure preserved
  • ✅ Compatible input parameters maintained

This change improves maintainability by using the official GitHub Actions marketplace action while preserving all existing translation functionality.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI changed the title [WIP] Replace usage of prompt-action with @actions/ai-inference action in .github/workflows/translate-file.yml Make sure to update the output references as ai-inference uses a different output name. Keep everything else the same, these actions should be co... Replace prompt-action with @actions/ai-inference in translation workflow Aug 5, 2025
Copilot finished work on behalf of FidelusAleksander August 5, 2025 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants