<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Aleksander Fidelus</title>
    <description>The latest articles on DEV Community by Aleksander Fidelus (@fidelusaleksander).</description>
    <link>https://dev.to/fidelusaleksander</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1101269%2F6eea3463-888f-4941-b807-fee5c01a2276.jpeg</url>
      <title>DEV Community: Aleksander Fidelus</title>
      <link>https://dev.to/fidelusaleksander</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fidelusaleksander"/>
    <language>en</language>
    <item>
      <title>GitHub Actions Just Got Smarter: New Native AI Support and What It Means for Automation</title>
      <dc:creator>Aleksander Fidelus</dc:creator>
      <pubDate>Tue, 15 Apr 2025 17:43:07 +0000</pubDate>
      <link>https://dev.to/fidelusaleksander/github-actions-just-got-smarter-new-native-ai-support-and-what-it-means-for-automation-3f56</link>
      <guid>https://dev.to/fidelusaleksander/github-actions-just-got-smarter-new-native-ai-support-and-what-it-means-for-automation-3f56</guid>
      <description>&lt;h2&gt;
  
  
  The Announcement
&lt;/h2&gt;

&lt;p&gt;GitHub has made a groundbreaking announcement, introducing native AI capabilities directly into GitHub Actions, through GitHub Models!&lt;/p&gt;

&lt;p&gt;This update fundamentally changes how we can use AI in our workflows, eliminating the need for third party AI service integrations.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.blog/changelog/2025-04-14-github-actions-token-integration-now-generally-available-in-github-models/" rel="noopener noreferrer"&gt;Announcement Blog Post&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Points
&lt;/h2&gt;

&lt;h3&gt;
  
  
  New Permissions
&lt;/h3&gt;

&lt;p&gt;To use GitHub Models in your workflows, you'll need to add a new permission block:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;models&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;read&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Use provided token
&lt;/h3&gt;

&lt;p&gt;No external API keys are needed! The &lt;code&gt;${{ secrets.GITHUB_TOKEN }}&lt;/code&gt; that's available in your workflow now can be used to call the &lt;a href="https://models.inference.ai.azure.com/chat/completions" rel="noopener noreferrer"&gt;inference API&lt;/a&gt; when the &lt;code&gt;models&lt;/code&gt; permissions are set.&lt;/p&gt;

&lt;h2&gt;
  
  
  Usage Examples
&lt;/h2&gt;

&lt;p&gt;I've created two GitHub Actions that showcase the practical applications of this new functionality:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Prompt Action (&lt;a href="https://github.com/FidelusAleksander/prompt-action" rel="noopener noreferrer"&gt;GitHub Repo&lt;/a&gt;)
&lt;/h3&gt;

&lt;p&gt;The most basic action you could think of. Prompt about anything.&lt;/p&gt;

&lt;p&gt;The output &lt;code&gt;text&lt;/code&gt; can be used in combination with other actions for any automation you can imagine.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Prompt&lt;/span&gt;
  &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;FidelusAleksander/prompt-action@v1&lt;/span&gt;
  &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;prompt&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
      &lt;span class="s"&gt;Modify this PR title to match conventional commit styling:&lt;/span&gt;

      &lt;span class="s"&gt;${{ github.event.pull_request.title }}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check out the repository for &lt;a href="https://github.com/FidelusAleksander/prompt-action?tab=readme-ov-file#cool-examples-" rel="noopener noreferrer"&gt;example usages&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  2. AI Translate Action (&lt;a href="https://github.com/FidelusAleksander/ai-translate-action" rel="noopener noreferrer"&gt;GitHub Repo&lt;/a&gt;)
&lt;/h3&gt;

&lt;p&gt;This action provides AI-powered text translation directly in your workflows.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;FidelusAleksander/ai-translate-action@v1&lt;/span&gt;
  &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;text&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Hello,&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;world!"&lt;/span&gt;
    &lt;span class="na"&gt;target-language&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Spanish"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A real-world example: I use this action to automatically translate the README file into multiple languages whenever changes are made to the English version:&lt;/p&gt;

&lt;p&gt;See full version &lt;a href="https://github.com/FidelusAleksander/ai-translate-action?tab=readme-ov-file#cool-examples-" rel="noopener noreferrer"&gt;here&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;FidelusAleksander/ai-translate-action@v1&lt;/span&gt;
  &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;text-file&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;README.md"&lt;/span&gt;
    &lt;span class="na"&gt;target-language&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${{ matrix.language }}&lt;/span&gt;
    &lt;span class="na"&gt;custom-instructions&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Keep&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;technical&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;terms&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;in&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;English.&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Don't&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;translate&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;code&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;blocks"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The Possibilities Are Endless
&lt;/h2&gt;

&lt;p&gt;These are just two examples of what's possible with AI in GitHub Actions.&lt;/p&gt;

&lt;p&gt;Now that GitHub opened the gates, expect many new actions to be created!&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.github.com/en/github-models" rel="noopener noreferrer"&gt;Documentation: GitHub Models&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.github.com/en/github-models/prototyping-with-ai-models#rate-limits" rel="noopener noreferrer"&gt;Rate Limits for GitHub Models&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/FidelusAleksander/prompt-action" rel="noopener noreferrer"&gt;Prompt Action&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/FidelusAleksander/ai-translate-action" rel="noopener noreferrer"&gt;AI Translate Action&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
  </channel>
</rss>
