{"id":16543374,"url":"https://github.com/creyd/crush_action","last_synced_at":"2025-03-04T07:14:23.958Z","repository":{"id":65159384,"uuid":"247746182","full_name":"creyD/crush_action","owner":"creyD","description":"GitHub action for automatic lossless image compression","archived":false,"fork":false,"pushed_at":"2024-11-24T15:26:49.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T21:17:05.914Z","etag":null,"topics":["compression","github-actions","image-processing","lossless"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/creyD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-16T15:27:45.000Z","updated_at":"2020-06-15T17:33:22.000Z","dependencies_parsed_at":"2023-01-05T04:53:22.189Z","dependency_job_id":null,"html_url":"https://github.com/creyD/crush_action","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"1c6132258ad2d2073b5612367a25ad6884d247bd"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creyD%2Fcrush_action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creyD%2Fcrush_action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creyD%2Fcrush_action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creyD%2Fcrush_action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/creyD","download_url":"https://codeload.github.com/creyD/crush_action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241801256,"owners_count":20022390,"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":["compression","github-actions","image-processing","lossless"],"created_at":"2024-10-11T19:00:07.869Z","updated_at":"2025-03-04T07:14:23.936Z","avatar_url":"https://github.com/creyD.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Crush Action\n\nGitHub action for automatic lossless image compression using [OptiPNG](http://optipng.sourceforge.net/) for PNG compression and [jpegoptim](https://www.kokkonen.net/tjko/projects.html) for JPG compression.\n\n## Usage\n\n### Parameters\n\n| Parameter | Required | Default | Description |\n| - | :-: | :-: | - |\n| folder | :x: | . | Custom search folder, if you don't want to search the whole repository. |\n| commit_options | :x: | - | Custom git commit options |\n| commit_message | :x: | Optimised your images! | Custom git commit message |\n| file_pattern | :x: | * | Custom git add file pattern |\n| branch | :white_check_mark: | - | There are two types of action triggers in GitHub: on pull request and on push. The branch needs to be defined for both, but in case of the pull request trigger it should have `${{ github.head_ref }}` and on push it should have the branch the trigger is designed for. |\n\n### Example Config\n\n#### Example - On Pull Request\n\nThis is a small example of what your `action.yml` could look like (on pull request mode):\n\n```yaml\nname: Optimising Pictures\n\non: [pull_request]\n\njobs:\n  cleanup_tasks:\n    runs-on: ubuntu-latest\n\n    steps:\n    - name: Cloning the repository\n      uses: actions/checkout@v1\n      with:\n        fetch-depth: 1\n    - name: Crush Images!\n      uses: creyD/crush_action@v1.0\n      with:\n        branch: ${{ github.head_ref }}\n      env:\n        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n#### Example - On Push\n\n```yaml\nname: Optimising Pictures\n\non:\n  push:\n    branches: [master]\n\njobs:\n  cleanup_tasks:\n    runs-on: ubuntu-latest\n\n    steps:\n    - name: Cloning the repository\n      uses: actions/checkout@v1\n      with:\n        fetch-depth: 1\n    - name: Crush Images!\n      uses: creyD/crush_action@v1.0\n      with:\n        branch: master\n      env:\n        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\nMore documentation for writing a workflow can be found [here](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions).\n\n## Issues\n\nPlease report all bugs and feature request using the [GitHub issues function](https://github.com/creyD/crush_action/issues/new). Thanks!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreyd%2Fcrush_action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcreyd%2Fcrush_action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreyd%2Fcrush_action/lists"}