{"id":17093069,"url":"https://github.com/peter-murray/semver-data-action","last_synced_at":"2026-05-15T21:05:03.961Z","repository":{"id":216810390,"uuid":"742486635","full_name":"peter-murray/semver-data-action","owner":"peter-murray","description":"GitHub Action that can validate and parse data from SemVer version numbers","archived":false,"fork":false,"pushed_at":"2024-06-28T06:21:51.000Z","size":257,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-01T20:06:12.058Z","etag":null,"topics":["github-actions","semver"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/peter-murray.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,"publiccode":null,"codemeta":null}},"created_at":"2024-01-12T15:33:09.000Z","updated_at":"2024-01-12T15:55:13.000Z","dependencies_parsed_at":"2025-01-28T22:46:57.829Z","dependency_job_id":"08cdfccc-eca8-49f2-bcc4-0fbf61f8eec2","html_url":"https://github.com/peter-murray/semver-data-action","commit_stats":null,"previous_names":["peter-murray/semver-data-action"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/peter-murray/semver-data-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-murray%2Fsemver-data-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-murray%2Fsemver-data-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-murray%2Fsemver-data-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-murray%2Fsemver-data-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peter-murray","download_url":"https://codeload.github.com/peter-murray/semver-data-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-murray%2Fsemver-data-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33080383,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"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":["github-actions","semver"],"created_at":"2024-10-14T14:04:28.866Z","updated_at":"2026-05-15T21:05:03.934Z","avatar_url":"https://github.com/peter-murray.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# semver-action\n\nA Github Action that wil parse, validate and then provide data back on a SemVer version number.\n\nThis includes parsing out the `major`, `minor`, `patch` and the pre release aspects as well as providing `next` version numbers for the major, minor and patch for the provided version number.\n\n## Parameters\n\n* `version`: The version number to be parsed as a SemVer\n\n\n## Outputs\n\n* `version`: The parsed SemVer value\n\n* `major`: The major part of the parsed SemVer, e.g. for version `1.2.3` it would return `1`\n\n* `minor`: The minor part of the parsed SemVer, e.g. for version `1.2.3` it would return `2`\n\n* `patch`: The major part of the parsed SemVer, e.g. for version `1.2.3` it would return `3`\n\n* `isPreRelease`: A boolean as a string indicating if the parsed SemVer is a pre release version, e.g. for version `1.2.3` it would return `false`, but for `1.2.3-alpha` it would return `true\n\n* `preRelease`: The pre release part of the parsed SemVer as a JSON array, e.g. for version `1.2.3-alpha.1` it would return `[\"alpha\", 1]`\n\n* `preReleaseString`: The pre release part of the parsed SemVer as a string, e.g. for version `1.2.3-alpha.1` it would return `alpha.1`\n\n* `nextMajor`: The next major version number as a string, e.g. for version `1.2.3` it would return `2.0.0`\n\n* `nextMinor`: The next minor version number as a string, e.g. for version `1.2.3` it would return `1.3.0`\n\n* `nextPatch`: The next patch version number as a string, e.g. for version `1.2.3` it would return `1.2.4`\n\n* `semeverData`: The full JSON data structure of the parsed [SemverData type](src/semver.ts#L3)\n\n## Usage\n\n```yaml\n- name: Parse SemVer\n  id: version\n  uses: peter-murray/semver-action@v1\n  with:\n    version: 1.2.3-alpha.1\n\n- name: Print next major\n  run: echo ${{ steps.version.outputs.nextMajor }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter-murray%2Fsemver-data-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeter-murray%2Fsemver-data-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter-murray%2Fsemver-data-action/lists"}