<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>actions &amp;mdash; sanifair.xyz</title>
    <link>https://blog.sanifair.xyz/tag:actions</link>
    <description>some Blog, about any</description>
    <pubDate>Wed, 30 Sep 2026 01:09:14 +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>
    <item>
      <title>github action commit to remote repository</title>
      <link>https://blog.sanifair.xyz/github-action-commit-to-remote-repository</link>
      <description>&lt;![CDATA[#Github #actions help you to #automate Processes (CI/CD).&#xA;&#xA;In my Example I tried to checkout source code, scan for Strings, append found Strings to a File and commit changes to separate repository.&#xA;!--more--&#xA;&#xA;As you know, actions are saved in your Repository under the Path:&#xA;.github/workflows/workflow.yaml&#xA;&#xA;steps:&#xA;        # check out source repository&#xA;      name: checkout source repository (this)&#xA;        uses: actions/checkout@v3&#xA;&#xA;        # check out target repository&#xA;      name: checkout target&#xA;        uses: actions/checkout@v3&#xA;        with: &#xA;          repository: example/target&#xA;          ssh-key: ${{ secrets.DEPLOY_SECRET }}&#xA;&#xA;        # do your thing...&#xA;      name: do things&#xA;        run: modify files in target...&#xA;&#xA;      # commit to target repository&#xA;      name: commit changes&#xA;        uses: stefanzweifel/git-auto-commit-action@v4&#xA;        with:&#xA;          repository: example/target&#xA;&#xA;Explanation:&#xA;-1. Checkout run with &#34;example/source&#34;&#xA;-2․ Checkout run with &#34;example/target&#34;&#xA;  used &#34;with&#34;:&#xA;    repository to Checkout a other Repo&#xA;    ssh-key for authentication (Deploy Key for target)&#xA;-3. commit Changes, if found &#xA;&#xA;Good luck! ]]&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 tried to checkout source code, scan for Strings, append found Strings to a File and commit changes to separate repository.
</p>

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

<pre><code class="language-yaml">steps:
        # check out source repository
      - name: checkout source repository (this)
        uses: actions/checkout@v3

        # check out target repository
      - name: checkout target
        uses: actions/checkout@v3
        with: 
          repository: example/target
          ssh-key: ${{ secrets.DEPLOY_SECRET }}

        # do your thing...
      - name: do things
        run: modify files in target...

      # commit to target repository
      - name: commit changes
        uses: stefanzweifel/git-auto-commit-action@v4
        with:
          repository: example/target
</code></pre>

<p>Explanation:
-1. Checkout run with “example/source”
-2․ Checkout run with “example/target”
  – used “with”:
    – repository to Checkout a other Repo
    – ssh-key for authentication (Deploy Key for target)
-3. commit Changes, if found</p>

<p>Good luck!</p>
]]></content:encoded>
      <guid>https://blog.sanifair.xyz/github-action-commit-to-remote-repository</guid>
      <pubDate>Mon, 15 May 2023 20:47:27 +0200</pubDate>
    </item>
  </channel>
</rss>