{"id":15406473,"url":"https://github.com/odlp/skippable","last_synced_at":"2025-04-06T12:13:33.072Z","repository":{"id":56896023,"uuid":"323673706","full_name":"odlp/skippable","owner":"odlp","description":"Skip a command unless file(s) changed","archived":false,"fork":false,"pushed_at":"2020-12-23T15:28:12.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-16T21:04:58.824Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/odlp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-22T16:10:53.000Z","updated_at":"2020-12-23T15:28:02.000Z","dependencies_parsed_at":"2022-08-21T01:50:20.493Z","dependency_job_id":null,"html_url":"https://github.com/odlp/skippable","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odlp%2Fskippable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odlp%2Fskippable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odlp%2Fskippable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odlp%2Fskippable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/odlp","download_url":"https://codeload.github.com/odlp/skippable/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478331,"owners_count":20945266,"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":[],"created_at":"2024-10-01T16:23:10.962Z","updated_at":"2025-04-06T12:13:33.050Z","avatar_url":"https://github.com/odlp.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Skippable\n\nSkippable helps you skip slow commands unless certain files changed. This can be\nhandy on CI, where valuable time, money, and CO₂ are often wasted by repeatedly\nrunning the same command when nothing changed.\n\nFor example [License Finder](https://github.com/pivotal/LicenseFinder) takes ~45\nseconds to run on a project with Ruby gems and NPM dependencies. In this example\nthere's no need to check the licenses if the dependency lockfiles didn't change.\n\n## Usage\n\nAdd Skippable to your Gemfile:\n\n```ruby\ngroup :development do\n  gem \"skippable\", require: false\nend\n```\n\nSetup a `.skippable.yml` config file with one or more tasks:\n\n```yaml\ntasks:\n  expensive_op:\n    command: bundle exec my_slow_command\n    paths:\n      - lockfile_a\n      - lockfile_b\n```\n\nRun the task using `skippable`:\n\n```\nbundle exec skippable expensive_op\n```\n\n- If the cache was cold OR the lockfiles changed, the specified command will\nbe run\n- If the cache is warm, and the lockfiles haven't changed, the command\nwill be skipped\n\nFinally, cache the following directory to persist state across builds:\n\n```\ntmp/skippable\n```\n\n## Example\n\n```yaml\n# .skippable.yml\ntasks:\n  license_finder:\n    command: bundle exec license_finder\n    paths:\n      - Gemfile.lock\n      - yarn.lock\n```\n\nInvocation:\n\n```\nbundle exec skippable license_finder\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodlp%2Fskippable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fodlp%2Fskippable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodlp%2Fskippable/lists"}