{"id":18853423,"url":"https://github.com/zyactions/semver","last_synced_at":"2026-04-28T01:32:10.713Z","repository":{"id":227471483,"uuid":"771452349","full_name":"zyactions/semver","owner":"zyactions","description":"A GitHub Action that provides access to the individual parts of a SemVer2 version string.","archived":false,"fork":false,"pushed_at":"2024-03-13T13:12:20.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-20T13:52:15.973Z","etag":null,"topics":["continuous-integration","github-actions"],"latest_commit_sha":null,"homepage":"","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/zyactions.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}},"created_at":"2024-03-13T10:25:01.000Z","updated_at":"2024-03-13T12:57:44.000Z","dependencies_parsed_at":"2024-03-13T14:28:37.957Z","dependency_job_id":"a861e2cb-0dd3-4788-843b-9244e8dff12b","html_url":"https://github.com/zyactions/semver","commit_stats":null,"previous_names":["zyactions/semver"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zyactions/semver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyactions%2Fsemver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyactions%2Fsemver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyactions%2Fsemver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyactions%2Fsemver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zyactions","download_url":"https://codeload.github.com/zyactions/semver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zyactions%2Fsemver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32362781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["continuous-integration","github-actions"],"created_at":"2024-11-08T03:44:19.386Z","updated_at":"2026-04-28T01:32:10.699Z","avatar_url":"https://github.com/zyactions.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SemVer\n\n![License: MIT][shield-license-mit]\n[![CI][shield-ci]][workflow-ci]\n[![Ubuntu][shield-platform-ubuntu]][job-runs-on]\n[![macOS][shield-platform-macos]][job-runs-on]\n[![Windows][shield-platform-windows]][job-runs-on]\n\nA GitHub Action that provides access to the individual parts of a SemVer2 version string.\n\n## Features\n\n- Provides access to the individual parts of a [SemVer2][semver] version string\n- Supports removal of unwanted prefixes\n- Fast execution\n- Supports all platforms (Linux, macOS, Windows)\n- Does not use external GitHub Actions dependencies\n\n## Usage\n\n### Parse semantic version\n\n```yaml\nsteps:\n  - name: Parse version\n    id: version\n    uses: zyactions/semver@v1\n    with:\n      version: '1.2.3-alpha.1+build'\n\n  - name: Print major version\n    run: |-\n      echo \"Major: ${{ steps.outputs.version.major }}\"\n```\n\n\u003e [!NOTE]\n\u003e\n\u003e If the `version` starts with `refs/` and/or `tags/`, the prefix is automatically removed so that Git references can easily be used as input.\n\n## Inputs\n\n### `version`\n\nA string containing the semantic version to parse.\n\nFor example:\n\n- `1.2.3-alpha.1+build`\n- `v2.3.4`\n- `refs/tags/v2.3.4`\n\nDefaults to `GITHUB_REF` if not specified.\n\n### `prefixes`\n\nAn optional newline separated list of version prefixes to strip from the input version (e.g. `v` or `release-v`).\n\n### `fail-on-error`\n\nSet `true` to fail, if the input `version` does not contain a valid semantic version.\n\nDefaults to `true`.\n\n## Outputs\n\n### `valid`\n\nSignals, if the input `version` contained a valid semantic version.\n\n\u003e [!NOTE]\n\u003e\n\u003e GitHub Actions outputs are always strings. Please explicitly check this value for `'true'` and `'false'` (string) instead of relying on boolean operations.\n\n### `version`\n\nThe (sanitized) semantic version string with any prefix trimmed from it.\n\nFor example: `1.2.3-alpha.1+build`\n\n### `major`\n\nThe major version.\n\nFor example: `1`\n\n### `minor`\n\nThe minor version.\n\nFor example: `2`\n\n### `patch`\n\nThe patch version.\n\nFor example: `3`\n\n### `prerelease`\n\nThe prerelease version part.\n\nFor example: `alpha.1`\n\n### `build`\n\nThe build/metadata version part.\n\nFor example: `build`\n\n## Dependencies\n\nThis action does not use external GitHub Actions dependencies.\n\nInternal dependencies:\n\n- [semver-tool][semver-tool] (bundled)\n\n## Versioning\n\nVersions follow the [semantic versioning scheme][semver].\n\n## License\n\nSemVer Action is licensed under the MIT license.\n\n[job-runs-on]: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on\n[semver]: https://semver.org\n[semver-tool]: https://github.com/fsaintjacques/semver-tool\n[shield-license-mit]: https://img.shields.io/badge/License-MIT-blue.svg\n[shield-ci]: https://github.com/zyactions/semver/actions/workflows/ci.yml/badge.svg\n[shield-platform-ubuntu]: https://img.shields.io/badge/Ubuntu-E95420?logo=ubuntu\\\u0026logoColor=white\n[shield-platform-macos]: https://img.shields.io/badge/macOS-53C633?logo=apple\\\u0026logoColor=white\n[shield-platform-windows]: https://img.shields.io/badge/Windows-0078D6?logo=windows\\\u0026logoColor=white\n[workflow-ci]: https://github.com/zyactions/semver/actions/workflows/ci.yml\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyactions%2Fsemver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzyactions%2Fsemver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzyactions%2Fsemver/lists"}