Skip to content

Commit

Permalink
v1.0.2 doc: update document. #2 151f2d1
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 18, 2024
1 parent 8e11f1b commit 6e0e541
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,33 @@ <h2 id="example-usage"><a aria-hidden="true" tabindex="-1" href="#example-usage"
├─> src
│ └── index.ts
└── tsconfig.json
"><div onclick="copied(this)" class="copied"><svg class="octicon-copy" aria-hidden="true" viewBox="0 0 16 16" fill="currentColor" height="12" width="12"><path fill-rule="evenodd" d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"></path><path fill-rule="evenodd" d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"></path></svg><svg class="octicon-check" aria-hidden="true" viewBox="0 0 16 16" fill="currentColor" height="12" width="12"><path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path></svg></div></pre>
<pre class="language-yml"><code class="language-yml code-highlight"><span class="code-line line-number" line="1"><span class="token punctuation">-</span> <span class="token key atrule">name</span><span class="token punctuation">:</span> Print Folder Tree
</span><span class="code-line line-number" line="2"> <span class="token key atrule">uses</span><span class="token punctuation">:</span> jaywcjlove/github<span class="token punctuation">-</span>action<span class="token punctuation">-</span>folder<span class="token punctuation">-</span>tree@main
</span><span class="code-line line-number" line="3"> <span class="token key atrule">id</span><span class="token punctuation">:</span> tree
</span><span class="code-line line-number" line="4"> <span class="token key atrule">with</span><span class="token punctuation">:</span>
</span><span class="code-line line-number" line="5"> <span class="token key atrule">exclude</span><span class="token punctuation">:</span> <span class="token string">"node_modules|dist|.git|.husky"</span>
</span><span class="code-line line-number" line="6"> <span class="token key atrule">path</span><span class="token punctuation">:</span> ./src
</span><span class="code-line line-number" line="7"> <span class="token key atrule">depth</span><span class="token punctuation">:</span> <span class="token number">2</span>
</span><span class="code-line line-number" line="8">
</span><span class="code-line line-number" line="9"><span class="token punctuation">-</span> <span class="token key atrule">name</span><span class="token punctuation">:</span> Modify README.md
</span><span class="code-line line-number" line="10"> <span class="token key atrule">uses</span><span class="token punctuation">:</span> jaywcjlove/github<span class="token punctuation">-</span>action<span class="token punctuation">-</span>modify<span class="token punctuation">-</span>file<span class="token punctuation">-</span>content@main
</span><span class="code-line line-number" line="11"> <span class="token key atrule">with</span><span class="token punctuation">:</span>
</span><span class="code-line line-number" line="12"> <span class="token key atrule">path</span><span class="token punctuation">:</span> README.md
</span><span class="code-line line-number" line="13"> <span class="token key atrule">body</span><span class="token punctuation">:</span> $<span class="token punctuation">{</span><span class="token punctuation">{</span> steps.tree.outputs.content <span class="token punctuation">}</span><span class="token punctuation">}</span>
</span></code><input type="hidden" value="- name: Print Folder Tree
uses: jaywcjlove/github-action-folder-tree@main
id: tree
with:
exclude: &#x22;node_modules|dist|.git|.husky&#x22;
path: ./src
depth: 2
- name: Modify README.md
uses: jaywcjlove/github-action-modify-file-content@main
with:
path: README.md
body: ${{ steps.tree.outputs.content }}
"><div onclick="copied(this)" class="copied"><svg class="octicon-copy" aria-hidden="true" viewBox="0 0 16 16" fill="currentColor" height="12" width="12"><path fill-rule="evenodd" d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"></path><path fill-rule="evenodd" d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"></path></svg><svg class="octicon-check" aria-hidden="true" viewBox="0 0 16 16" fill="currentColor" height="12" width="12"><path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path></svg></div></pre>
<h2 id="inputs"><a aria-hidden="true" tabindex="-1" href="#inputs" class="anchor"><span class="icon icon-link"></span></a>Inputs</h2>
<ul>
Expand Down

0 comments on commit 6e0e541

Please sign in to comment.