<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>GithubActions on keee.blog</title><link>https://keee.blog/tags/githubactions/</link><description>Recent content in GithubActions on keee.blog</description><generator>Hugo -- gohugo.io</generator><language>ja</language><copyright>©2025, All Rights Reserved</copyright><lastBuildDate>Sun, 05 Feb 2023 00:11:59 +0900</lastBuildDate><atom:link href="https://keee.blog/tags/githubactions/index.xml" rel="self" type="application/rss+xml"/><item><title>[Hugo]自動投稿したい4（自動コミット）</title><link>https://keee.blog/posts/3eb16e4f21bbb6bdd95bf3e677c6b97e/</link><pubDate>Sun, 05 Feb 2023 00:11:59 +0900</pubDate><atom:modified>Sun, 05 Feb 2023 00:11:59 +0900</atom:modified><guid>https://keee.blog/posts/3eb16e4f21bbb6bdd95bf3e677c6b97e/</guid><description>&lt;h2 id="今回やること">今回やること&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="https://keee.blog/posts/344ec63df460236c75c8a20be8736605/">日付更新処理&lt;/a>で行った変更をmainブランチに反映する&lt;/li>
&lt;li>ストック数をslackに通知する&lt;/li>
&lt;/ul>
&lt;h2 id="前提">前提&lt;/h2>
&lt;ul>
&lt;li>ワークフロー用のファイルが作成されている&lt;/li>
&lt;li>slackのIncoming Webhookが使用できる状態になっている&lt;/li>
&lt;li>変更内容が意図したものかはフロー中では確認しない&lt;/li>
&lt;/ul>
&lt;h2 id="差分があるか確認する">差分があるか確認する&lt;/h2>
&lt;p>&lt;code>git diff&lt;/code>で差分を確認する。&lt;br />
差分があるときだけコミットするステップに進む。&lt;/p></description><dc:creator>keee</dc:creator><category>Hugo</category><category>GithubActions</category><category>grep</category></item><item><title>[Hugo] 自動投稿したい3（Github Actionsで記事ファイルを更新する）</title><link>https://keee.blog/posts/344ec63df460236c75c8a20be8736605/</link><pubDate>Sun, 08 Jan 2023 13:50:47 +0900</pubDate><atom:modified>Sun, 08 Jan 2023 13:50:47 +0900</atom:modified><guid>https://keee.blog/posts/344ec63df460236c75c8a20be8736605/</guid><description>&lt;h2 id="今回やること">今回やること&lt;/h2>
&lt;p>以下を定期的に行う設定を作成する。&lt;/p>
&lt;ul>
&lt;li>公開可能な記事データを抽出&lt;/li>
&lt;li>更新日が最も古いものの&lt;code>date&lt;/code>を更新&lt;/li>
&lt;/ul>
&lt;p>コミット部分は別で対応。&lt;/p>
&lt;h2 id="前提">前提&lt;/h2>
&lt;ul>
&lt;li>hugo v0.96.0+extended&lt;/li>
&lt;li>記事抽出・更新のコマンドを作成 &lt;a href="https://keee.blog/posts/6cb4b610422bcc36b4def9a637ffd54e/">検討時の詳細はこちら&lt;/a>&lt;/li>
&lt;li>act version 0.2.34 &lt;a href="https://keee.blog/posts/768c00018878e246f3410a7dd991c1f4/">インストールのことはこちら&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 id="yamlファイルに設定を書く">yamlファイルに設定を書く&lt;/h2>
&lt;p>プロジェクトのルートディレクトリに&lt;code>.github/workflows/&lt;/code>ディレクトリを作成。&lt;br />
この中の&lt;code>.yaml&lt;/code>ファイルに記載した内容が実行される。&lt;/p></description><dc:creator>keee</dc:creator><category>Hugo</category><category>GithubActions</category><category>Git</category></item><item><title>[Github Actions] 動作確認のツールを入れる</title><link>https://keee.blog/posts/768c00018878e246f3410a7dd991c1f4/</link><pubDate>Sun, 08 Jan 2023 00:11:56 +0900</pubDate><atom:modified>Sun, 08 Jan 2023 00:11:56 +0900</atom:modified><guid>https://keee.blog/posts/768c00018878e246f3410a7dd991c1f4/</guid><description>&lt;h2 id="やること">やること&lt;/h2>
&lt;p>ローカルでワークフローの挙動を確認できるように&lt;code>act&lt;/code>を入れる。&lt;/p>
&lt;h2 id="前提">前提&lt;/h2>
&lt;ul>
&lt;li>macos 12.5&lt;/li>
&lt;li>Homebrew 3.6.16&lt;/li>
&lt;/ul>
&lt;h2 id="actについて">actについて&lt;/h2>
&lt;p>本番環境で試すのはコミットが汚れるし、pushも面倒。&lt;br />
コミットしなくても動作確認ができて便利なので、actを使用する。&lt;br />
&lt;a href="https://github.com/nektos/act">https://github.com/nektos/act&lt;/a>&lt;/p></description><dc:creator>keee</dc:creator><category>GithubActions</category><category>act</category></item></channel></rss>