{"id":22340049,"url":"https://github.com/mandelsoft/ocm-action","last_synced_at":"2025-10-13T10:34:11.125Z","repository":{"id":139618260,"uuid":"446332819","full_name":"mandelsoft/ocm-action","owner":"mandelsoft","description":"Action for handling Open Component Model operations","archived":false,"fork":false,"pushed_at":"2022-01-11T09:24:38.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T10:30:44.564Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mandelsoft.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-01-10T08:10:00.000Z","updated_at":"2022-01-10T17:32:40.000Z","dependencies_parsed_at":"2023-07-04T16:04:26.749Z","dependency_job_id":null,"html_url":"https://github.com/mandelsoft/ocm-action","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandelsoft%2Focm-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandelsoft%2Focm-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandelsoft%2Focm-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mandelsoft%2Focm-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mandelsoft","download_url":"https://codeload.github.com/mandelsoft/ocm-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245623078,"owners_count":20645680,"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-12-04T07:10:14.235Z","updated_at":"2025-10-13T10:34:06.093Z","avatar_url":"https://github.com/mandelsoft.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Open Component Model action\n\nThis action installs a dedicated version of the OCM tool and executes the\noperation specified with the `action` input.\nAll paths are evaluated relative to the workdir.\n\n## Inputs\n\n### `tool-version`\n\n**Optional** The tool verson to install. Default `\"v0.32.0\"`.\n\n### `tool-repo`\n\n**Optional** The tool repository to install from. Default `\"gardener/component-cli\"`.\n\n### `action`\n\n**Required** The action to execute.\n\nPossible actions are\n\n|Action|Meaning|Inputs|\n|------|-------|------|\n|`create_component`|create a component folder with component descriptor| `directory`, `component`, `version`, `descriptor` |\n|`add_resources`|add resources to an already existing or new component| `directory`, `component`, `version`, `descriptor`, `resources` |\n|`add_component`|add a component to an extisting or new transport archive| `directory`, `ctf` |\n|`push_ctf`|push the transport archive. If it does not exist, yet, or a component directory is given, the actual component will be used to create the transport archive.| `directory`, `ctf`, `comprepo_url`, `comprepo_user`, `comprepo_password` |\n\n### `directory`\n\n**Optional** Will be defaulted by `gen/ocm/component`, if input is required by action.\n\nThe directory to generate the component information\n\n### `descriptor`\n\n**Optional** The inital component descriptor to use.\n\nIf not specified it checks for a file `ocm/component-descriptor.yaml`.\n\n### `component`\n\n**Optional** The component name.\n\nIf a descriptor is specified the component name can be specified there.\nIf not given the repository based component identity is used.\n\n### `version`\n\n**Optional** The component version.\n\nIf not given the `version_cmd` input is checked for a command to execute to derive \nthe version. Otherwise the actual tag is checked. If not present the `version_file`\nfile ic checked and appended by the commit id.\n\n### `version_file`\n\n**Optional** The filename used to lookup the actual version. Default `VERSION`.\n\n### `resources`\n\n**Optional** The resource specification file describing the resources to add.\nIf not specified it checks for `gen/ocm/resources.yaml` and `ocm/resources.yaml`.\n\n### `ctf`\n\n**Optional** The file path of a generated transport archive. Default: `gen/ocm/transport.ctf`.\n\n### `comprepo_url`\n\n**Required for** `push_ctf`. The base URL for the used component repository.\nFor example `https://ghcr.io/mandelsoft/cnudie`.\n\n### `comprepo_user`\n\n**Required for** `push_ctf`. The username used to access the component repository.\n\n### `comprepo_password`\n\n**Required for** `push_ctf`. The password used to access the component repository.\n\n## Outputs\n\n### `component-name`\n\nThe (optional) effective component name.\n\n### `component-version`\n\nThe (optional) effective component version.\n\n### `component-path`\n\nThe (optional) workspace relative path of the generated component directory.\n\n### `transport-archive`\n\nThe (optional) workspace relative path of the generated transport archive\n\n## Example usage\n\n```\nuses: mandelsoft/ocm-action@master\nwith:\n  tool-version: v0.31.0\n  action: add_resources\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmandelsoft%2Focm-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmandelsoft%2Focm-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmandelsoft%2Focm-action/lists"}