{"repo":"suisei-cn/actions-download-file","free":true,"listed":false,"github":"https://github.com/suisei-cn/actions-download-file","clone":"git clone https://github.com/suisei-cn/actions-download-file.git","description":"An action used to filter out a URL and download files for further works.","language":"JavaScript","stars":38,"topics":["github-actions"],"license":"MIT","category":"workflow-automation","readme_excerpt":"actions-download-file An action used to filter out a URL and download files for further works. Usage With auto-match: true With auto-match: true it searches for the first URL wrapped in () brackets. For example, you can let it pick the first format URL from Markdown: Finding the first format URL from a comment event is also working, which is the primary aim of this action: Without auto-match With auto-match: false (which is the default behavior), you can directly give it an URL: Note that you can achieve the same goal on Linux/macOS with simply one command, if you don't need the output: Input parameters url: The URL, or the Markdown text containing an URL target: The target directory where the downloaded file lies. Will be automatically created if not exists. auto-match: (optional, default false ) If we find the URL from the text, or use the url parameter directly as the URL. filename: (optional) The filename to use when saving. If not given, use the original filename from the URL. retry-times: (optional, default 0 ) Times to retry on download failure. If not given, don't attempt to retry. Output filename: The written file name. How auto-match works? It attempts to find the first URL with the format (url) , such as (https://g.co) , which is the common way to embed a link into Markdown. Will it fail? This action WILL fail if it cannot finish its job, including but not limited to the cases when: No URL is provided The file cannot be downloaded It cannot find an URL with the for","default_branch":null,"files":null,"tree":[],"storefront":"/r/suisei-cn","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/suisei-cn/actions-download-file/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}