<?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: Will</title>
    <description>The latest articles on DEV Community by Will (@wilmol).</description>
    <link>https://dev.to/wilmol</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%2F460389%2F86391202-1158-4a4a-8d4a-0196b79cfd1e.jpeg</url>
      <title>DEV Community: Will</title>
      <link>https://dev.to/wilmol</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/wilmol"/>
    <language>en</language>
    <item>
      <title>Submission: Copybara Action</title>
      <dc:creator>Will</dc:creator>
      <pubDate>Sun, 30 Aug 2020 08:56:46 +0000</pubDate>
      <link>https://dev.to/wilmol/submission-copybara-action-6m7</link>
      <guid>https://dev.to/wilmol/submission-copybara-action-6m7</guid>
      <description>&lt;h3&gt;
  
  
  My Workflow
&lt;/h3&gt;

&lt;p&gt;Copybara Action; runs &lt;a href="https://github.com/google/copybara"&gt;https://github.com/google/copybara&lt;/a&gt; in GitHub Actions. &lt;/p&gt;

&lt;p&gt;Copybara transforms and moves code between repositories.&lt;/p&gt;

&lt;p&gt;Previously, you had to build and run Copybara manually on your machine. But I have automated this with GitHub Actions!&lt;/p&gt;

&lt;p&gt;Currently, I use the action to sync a private repository with a public one (&lt;a href="https://github.com/wilmol/coding-practice-java"&gt;https://github.com/wilmol/coding-practice-java&lt;/a&gt;).&lt;/p&gt;

&lt;h3&gt;
  
  
  Submission Category:
&lt;/h3&gt;

&lt;p&gt;Maintainer Must-Haves&lt;/p&gt;

&lt;h3&gt;
  
  
  Yaml File or Link to Code
&lt;/h3&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--A9-wwsHG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/will-molloy"&gt;
        will-molloy
      &lt;/a&gt; / &lt;a href="https://github.com/will-molloy/copybara-action"&gt;
        copybara-action
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Runs https://github.com/google/copybara in GitHub Actions. Copybara transforms and moves code between repositories.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h1&gt;
copybara-action&lt;/h1&gt;
&lt;p&gt;Runs &lt;a href="https://github.com/google/copybara"&gt;https://github.com/google/copybara&lt;/a&gt; in GitHub Actions. Copybara transforms and moves code between repositories.&lt;/p&gt;
&lt;h2&gt;
Usage&lt;/h2&gt;
&lt;p&gt;Specify &lt;code&gt;will-molloy/copybara-action@v1&lt;/code&gt; as a &lt;code&gt;step&lt;/code&gt; in your &lt;code&gt;workflow.yml&lt;/code&gt; file, for example:&lt;/p&gt;
&lt;div class="snippet-clipboard-content notranslate position-relative overflow-auto"&gt;&lt;pre class="notranslate"&gt;&lt;code&gt;steps:
  - uses: actions/checkout@v1

  - uses: will-molloy/copybara-action@v1
    with:
      git_name: will-molloy
      git_email: willjoemolloy@gmail.com
      ssh_key: ${{ secrets.SSH_KEY }}
      ssh_known_hosts: ${{ secrets.KNOWN_HOSTS }}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Note,&lt;/strong&gt; internally the action runs docker (specifically &lt;a href="https://hub.docker.com/r/sharelatex/copybara" rel="nofollow"&gt;this image&lt;/a&gt;) so the step must run on Linux.&lt;/p&gt;
&lt;h2&gt;
Arguments&lt;/h2&gt;
&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Input&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;th&gt;Usage&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;git_name&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;git config username, for authoring with Copybara&lt;/td&gt;
&lt;td&gt;&lt;em&gt;required&lt;/em&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;git_email&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;git config email, for authoring with Copybara&lt;/td&gt;
&lt;td&gt;&lt;em&gt;required&lt;/em&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;ssh_key&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;ssh public key, for authenticating with Copybara&lt;/td&gt;
&lt;td&gt;&lt;em&gt;required&lt;/em&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;ssh_known_hosts&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;ssh known hosts file contents, for authenticating with Copybara&lt;/td&gt;
&lt;td&gt;&lt;em&gt;required&lt;/em&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;path&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;copy.bara.sky&lt;/code&gt; file path&lt;/td&gt;
&lt;td&gt;optional (defaults to repo root)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;See &lt;a href="https://github.com/google/copybara"&gt;https://github.com/google/copybara&lt;/a&gt; for more details, specifically &lt;a href="https://github.com/google/copybara#using-docker-to-build-and-run-copybara"&gt;Using Docker to build and run Copybara&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;



&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/will-molloy/copybara-action"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;h3&gt;
  
  
  Additional Resources / Info
&lt;/h3&gt;

&lt;p&gt;As mentioned above, I use the action to sync a private repository with a public one (&lt;a href="https://github.com/wilmol/coding-practice-java"&gt;https://github.com/wilmol/coding-practice-java&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Developed by Will (&lt;a href="https://dev.to/wilmol"&gt;https://dev.to/wilmol&lt;/a&gt; / &lt;a href="https://github.com/wilmol"&gt;https://github.com/wilmol&lt;/a&gt;) and Ji (&lt;a href="https://dev.to/jidevops"&gt;https://dev.to/jidevops&lt;/a&gt; / &lt;a href="https://github.com/JiDevOps"&gt;https://github.com/JiDevOps&lt;/a&gt;).&lt;/p&gt;

</description>
      <category>actionshackathon</category>
      <category>github</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
