{"id":17966249,"url":"https://github.com/minituff/save-image","last_synced_at":"2026-04-16T14:09:45.429Z","repository":{"id":43356548,"uuid":"466570958","full_name":"Minituff/save-image","owner":"Minituff","description":"GitHub Action which saves/caches an image from a url into your repo","archived":false,"fork":false,"pushed_at":"2023-03-07T20:21:22.000Z","size":373,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T22:08:13.402Z","etag":null,"topics":["actions","cache","github","image","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Minituff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-05T21:23:56.000Z","updated_at":"2023-11-16T23:01:02.000Z","dependencies_parsed_at":"2024-10-29T13:29:36.599Z","dependency_job_id":null,"html_url":"https://github.com/Minituff/save-image","commit_stats":{"total_commits":64,"total_committers":5,"mean_commits":12.8,"dds":0.59375,"last_synced_commit":"9e58e3d74c42ac9805cc7e913740d43821b0a000"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Minituff%2Fsave-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Minituff%2Fsave-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Minituff%2Fsave-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Minituff%2Fsave-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Minituff","download_url":"https://codeload.github.com/Minituff/save-image/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247078756,"owners_count":20879948,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","cache","github","image","typescript"],"created_at":"2024-10-29T13:08:38.964Z","updated_at":"2026-04-16T14:09:45.381Z","avatar_url":"https://github.com/Minituff.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Action: *save-image*\n\nSaves an image from a URL into your GitHub repo.\n\nThis allows you to cache network images to be used within your repositories. This is useful for faster loading READMEs and for URLs that timeout sometimes.\n\n## Usage\n\n```yml\nuses: minituff/save-image@v1.4\nwith:\n    # Required. This is the URL from which the image will be pulled\n    url: 'https://cat.png'\n    \n    # Required. The relative path to where you would like the image to be stored. \n    # The extension must match the URL image extention.\n    # An incorrect path will result in no changes.\n    imagePath: 'media/cat.png'\n    \n    # Optional. Allows for the deletion of the image if the URL fails to load\n    deleteOnFail: false\n\n    #Optional. Reject the network image if the response header content-type does not match this exactly.\n    requiredContentType: 'image/svg+xml; charset=utf-8'\n```\n\n## Note\n\nThis Github action does **not** actually commit any changes. You **will** need to pair this action with a *committing* action such as [git-auto-commit-action](https://github.com/marketplace/actions/git-auto-commit).\nSee the example workflow below for an example.\n\n## Example Workflow\n\n```yml\nname: Update cat pictures\n\non:\n  schedule:\n    - cron: '0 */24 * * *' # every 24 hours\n  workflow_dispatch:\n\n\njobs:\n  update_cat_image:\n    # This is required to use the git-auto-commit-action. It must come before save-image\n  - uses: actions/checkout@v2\n    with:\n      ref: ${{ github.head_ref }}\n\n    # Run the save-image action\n    - name: \"Save cat image from URL\" \n    uses: minituff/save-image@v1.4\n    with:\n        url: 'https://cat.png'\n        imagePath: 'media/cat.png'\n\n    # If you do not commit the changes, then the action does not save to your repo\n    - name: \"Commit changes if necessary\"\n    uses: stefanzweifel/git-auto-commit-action@v4\n    with:\n        commit_message: Updating media/cat.png\n        # The lines below disable the \"co-authoring\" feature of this action\n        commit_user_name: github-actions[bot]\n        commit_user_email: github-actions[bot]@users.noreply.github.com\n        commit_author: Author \u003cgithub-actions[bot]@users.noreply.github.com\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminituff%2Fsave-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminituff%2Fsave-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminituff%2Fsave-image/lists"}