{"id":16019454,"url":"https://github.com/clearml/clearml-actions-train-model","last_synced_at":"2026-02-02T22:45:41.352Z","repository":{"id":65158823,"uuid":"288169391","full_name":"clearml/clearml-actions-train-model","owner":"clearml","description":"GitHub Action For Running Experiments With ClearML","archived":false,"fork":false,"pushed_at":"2022-09-03T19:51:57.000Z","size":130,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-28T07:35:35.887Z","etag":null,"topics":["actions","allegro-trains","clearml","deep-learning","devops","github-actions","gitops","machine-learning","mlops"],"latest_commit_sha":null,"homepage":"https://clear.ml","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clearml.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}},"created_at":"2020-08-17T12:04:32.000Z","updated_at":"2024-08-13T05:16:10.000Z","dependencies_parsed_at":"2023-01-13T15:43:26.451Z","dependency_job_id":null,"html_url":"https://github.com/clearml/clearml-actions-train-model","commit_stats":{"total_commits":14,"total_committers":4,"mean_commits":3.5,"dds":0.5714285714285714,"last_synced_commit":"7f47f16b438a4b05b91537f88e8813182f39f1fe"},"previous_names":["clearml/clearml-actions-train-model","allegroai/clearml-actions-train-model"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/clearml/clearml-actions-train-model","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clearml%2Fclearml-actions-train-model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clearml%2Fclearml-actions-train-model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clearml%2Fclearml-actions-train-model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clearml%2Fclearml-actions-train-model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clearml","download_url":"https://codeload.github.com/clearml/clearml-actions-train-model/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clearml%2Fclearml-actions-train-model/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29022535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T22:20:39.141Z","status":"ssl_error","status_checked_at":"2026-02-02T22:20:37.621Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","allegro-trains","clearml","deep-learning","devops","github-actions","gitops","machine-learning","mlops"],"created_at":"2024-10-08T17:04:27.483Z","updated_at":"2026-02-02T22:45:41.323Z","avatar_url":"https://github.com/clearml.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Action For Running Experiments With ClearML\n\n![GitHub stars](https://img.shields.io/github/stars/allegroai/clearml?style=social)\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/allegroai/clearml-actions-train-model/Test%20train%20model)\n\n\nTrain models easily with ClearML, directly from your repo!\n \nThis action helps to run experiments with , directly from Github. \nJust comment from any issue or pull request with \n  - `/train-model branch \u003cbrach name\u003e`\n  - `/train-model tag \u003ctag_name\u003e `\n  - `/train-model commit \u003ccommit_id\u003e`\n\n\n## Usage\n### Workflow Example\nThis will add an action to your workflow that will clone a ClearML [Task](https://clear.ml/docs/latest/docs/fundamentals/task)\n `TASK_ID` and will enqueue it to selected [Queue](https://clear.ml/docs/latest/docs/fundamentals/agents_and_queues) (`QUEUE_NAME` input parameter). \n\nWorks both in github issues and github pull requests comments.\n![image](docs/clearml-train-model-flow.png)\n\n\n\n```yaml\nname: Train model\non: [issue_comment]\n\njobs:\n  train-model:\n      if: contains(github.event.comment.body, '/train-model')\n      runs-on: ubuntu-latest\n      steps:\n        - name: Train model\n          uses: allegroai/clearml-train-model@master\n          id: train\n          with:\n            CLEARML_API_ACCESS_KEY: ${{ secrets.ACCESS_KEY }}\n            CLEARML_API_SECRET_KEY: ${{ secrets.SECRET_KEY }}\n            CLEARML_API_HOST: ${{ secrets.CLEARML_API_HOST }}\n            TASK_ID: \"e4623efdfa1d461e9101615728fdc52e\"\n            QUEUE_NAME: \"train_queue\"\n          env:\n            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n        # Example how you can use outputs from the train action\n        - name: Print task status\n          run: |\n            echo \"Task stats is ${TASK_STATUS} for task ${CLONED_TASK}\"\n          env:\n            TASK_STATUS: ${{ steps.train.outputs.TASK_STATUS }}\n            CLONED_TASK: ${{ steps.train.outputs.CLONED_TASK }}\n```\n\n### Inputs\n\n#### Mandatory\n  1. `CLEARML_API_ACCESS_KEY`: Your ClearML api access key. You can find it in your clearml.conf file under api.credentials.access_key section, [read more](https://clear.ml/docs/latest/docs/). \n  2. `CLEARML_API_SECRET_KEY`: Your ClearML api secret key. You can find it in your clearml.conf file under api.credentials.secret_key section, [read more](https://clear.ml/docs/latest/docs/).\n  3. `CLEARML_API_HOST`: The ClearML api server address. You can find it in your clearml.conf file under  api.api_server section, [read more](https://clear.ml/docs/latest/docs/).\n  4. `TASK_ID`: Id of the task you would like to clone.\n\n#### Optional\n\n  1. `QUEUE_NAME`: Queue for the cloned task (default value: `default`). You can read more about queues [here](https://clear.ml/docs/latest/docs/getting_started/mlops/mlops_first_steps).\n  \n### Outputs\n\n1. `CLONED_TASK`: The cloned task id.\n2. `TASK_STATUS`: The cloned task status (not updating).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclearml%2Fclearml-actions-train-model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclearml%2Fclearml-actions-train-model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclearml%2Fclearml-actions-train-model/lists"}