<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Repository &amp;mdash; sanifair.xyz</title>
    <link>https://blog.sanifair.xyz/tag:Repository</link>
    <description>some Blog, about any</description>
    <pubDate>Wed, 30 Sep 2026 01:03:43 +0200</pubDate>
    <item>
      <title>github action Repository basename</title>
      <link>https://blog.sanifair.xyz/github-action-repository-basename</link>
      <description>&lt;![CDATA[#Github #actions help you to #automate Processes (CI/CD).&#xA;&#xA;In my Example I need the #Basename of a #Repository. &#xA;!--more--&#xA;As you know, actions are saved in your Repository under the Path:&#xA;.github/workflows/workflow.yaml&#xA;&#xA;        #get Repository basename, use with ${{ env.REPONAME }}&#xA;      name: get Repository name&#xA;        run: |&#xA;          echo &#34;REPONAME=$(basename ${{ github.repository }})&#34;     $GITHUBENV&#xA;&#xA;        # echo target repository basename&#xA;      name: fetch translations&#xA;        run: &#xA;          echp ${{ env.REPONAME }}&#xA;&#xA;If found this working Solution on StackOverflow [1]&#xA;&#xA;[1] https://stackoverflow.com/a/71799882]]&gt;</description>
      <content:encoded><![CDATA[<p><a href="https://blog.sanifair.xyz/tag:Github" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Github</span></a> <a href="https://blog.sanifair.xyz/tag:actions" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">actions</span></a> help you to <a href="https://blog.sanifair.xyz/tag:automate" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">automate</span></a> Processes (CI/CD).</p>

<p>In my Example I need the <a href="https://blog.sanifair.xyz/tag:Basename" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Basename</span></a> of a <a href="https://blog.sanifair.xyz/tag:Repository" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">Repository</span></a>.

As you know, actions are saved in your Repository under the Path:
<code>.github/workflows/workflow.yaml</code></p>

<pre><code class="language-yaml">        #get Repository basename, use with ${{ env.REPO_NAME }}
      - name: get Repository name
        run: |
          echo &#34;REPO_NAME=$(basename ${{ github.repository }})&#34; &gt;&gt; $GITHUB_ENV


        # echo target repository basename
      - name: fetch translations
        run: 
          echp ${{ env.REPO_NAME }}
</code></pre>

<p>If found this working Solution on StackOverflow [1]</p>

<p>[1] <a href="https://stackoverflow.com/a/71799882" rel="nofollow">https://stackoverflow.com/a/71799882</a></p>
]]></content:encoded>
      <guid>https://blog.sanifair.xyz/github-action-repository-basename</guid>
      <pubDate>Tue, 16 May 2023 03:23:11 +0200</pubDate>
    </item>
  </channel>
</rss>