Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marketingpipeline/github-downloader-action
A Github Action to download single files or folders from another repo without cloning.
https://github.com/marketingpipeline/github-downloader-action
actions file-downloader git github github-action github-actions github-download-tool github-downloader shell-script workflow-actions
Last synced: about 1 month ago
JSON representation
A Github Action to download single files or folders from another repo without cloning.
- Host: GitHub
- URL: https://github.com/marketingpipeline/github-downloader-action
- Owner: MarketingPipeline
- License: mit
- Created: 2022-07-08T04:00:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-05T20:54:07.000Z (about 2 years ago)
- Last Synced: 2024-10-16T07:43:23.807Z (about 1 month ago)
- Topics: actions, file-downloader, git, github, github-action, github-actions, github-download-tool, github-downloader, shell-script, workflow-actions
- Language: Shell
- Homepage:
- Size: 83 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub-Downloader-Action
A Github Action to download single files or folders from another repo without cloning.
Show your support!
## Example and usage
How to use this action
How to download files & folders
To download a single file:
- uses: MarketingPipeline/GitHub-Downloader-Action@main
with:
repo: https://github.com/Repo-Owner-UserName/Repo-Name/blob/master/README.mdTo download a specific folder:
- uses: MarketingPipeline/GitHub-Downloader-Action@main
with:
repo: https://github.com/Repo-Owner-UserName/Repo-Name/blob/master/Folder-Name
To download all files in a repo folder:
- uses: MarketingPipeline/GitHub-Downloader-Action@main
with:
repo: https://github.com/Repo-Owner-UserName/Repo-Name/blob/master/
Workflow Example(s) / Usage
View Example Workflow Usage
- uses: actions/checkout@v2
- uses: MarketingPipeline/GitHub-Downloader-Action@main
with:
repo: https://github.com/MarketingPipeline/GitHub-Downloader-Action/blob/master/README.md- name: Commit and Push Downloaded Files
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "Updated Static Content"
git push
Example [workflow file](.github/example_workflow.yaml)
### Workflow Options:
How to change download path
### WARNING: Desintation folder / download path must exist in your repo or you will face issues
By default files will be placed into the root of your repo. To change this you need to include this option in your workflow.
Example:
with:
repo: https://github.com/MarketingPipeline/GitHub-Downloader-Action/blob/master/README.md
filepath: .github/
How to over-write filenames
By default files will not be over-written. To change this you need to include this option in your workflow.
Example:
with:
repo: https://github.com/MarketingPipeline/GitHub-Downloader-Action/blob/master/README.md
filepath: .github/
overwrite: true
## Contributing ![GitHub](https://img.shields.io/github/contributors/MarketingPipeline/GitHub-Downloader-Action)
Want to imrpove this action? Create a pull request with described in detail with your changes! If approved you will be added to the list of contributors of this awesome project!
See also the list of
[contributors](https://github.com/MarketingPipeline/GitHub-Downloader-Action/graphs/contributors) who
participate in this project.## License ![GitHub](https://img.shields.io/github/license/MarketingPipeline/GitHub-Downloader-Action)
This project is licensed under the MIT License - see the
[LICENSE.md](https://github.com/MarketingPipeline/GitHub-Downloader-Action/blob/main/LICENSE) file for
details.