<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atsuhiro-me</author_name>
  <author_url>https://blog.hatena.ne.jp/atsuhiro-me/</author_url>
  <blog_title>みーのぺーじ</blog_title>
  <blog_url>https://pc.atsuhiro-me.net/</blog_url>
  <categories>
    <anon>Git</anon>
  </categories>
  <description>おそらくGitHub Actions Environmentsで簡単に実現できることだと思うのですが，privateレポジトリでは使えないので，少し工夫してブランチ毎のSecretsを取得できるようにしました． 要件 testブランチのpushイベントで起動したら，VAL_TESTという名前のsecretを取得し，masterブランチで起動したら，VAL_MASTERという名前のsecretを取得する． GitHub Actionsのenvの制限が辛い ブランチの名前を取得するには，${{ github.ref }} が使えますが，&quot;refs/heads/test&quot;のような形式になるため直接は…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpc.atsuhiro-me.net%2Fentry%2F2021%2F02%2F05%2F223911&quot; title=&quot;GitHub Actionsでブランチ毎のSecretsを取得する - みーのぺーじ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-02-05 22:39:11</published>
  <title>GitHub Actionsでブランチ毎のSecretsを取得する</title>
  <type>rich</type>
  <url>https://pc.atsuhiro-me.net/entry/2021/02/05/223911</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
