{"id":24603669,"url":"https://github.com/apkawa/gh-action-semver-check","last_synced_at":"2025-08-01T06:32:53.939Z","repository":{"id":66453208,"uuid":"590029906","full_name":"Apkawa/gh-action-semver-check","owner":"Apkawa","description":"Github Action for check PEP0440 via poetry-semver","archived":false,"fork":false,"pushed_at":"2023-01-18T12:00:01.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T08:49:48.563Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/Apkawa.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2023-01-17T14:01:53.000Z","updated_at":"2023-01-17T14:01:59.000Z","dependencies_parsed_at":"2023-02-20T20:15:46.086Z","dependency_job_id":null,"html_url":"https://github.com/Apkawa/gh-action-semver-check","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"Apkawa/python-library-template","purl":"pkg:github/Apkawa/gh-action-semver-check","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apkawa%2Fgh-action-semver-check","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apkawa%2Fgh-action-semver-check/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apkawa%2Fgh-action-semver-check/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apkawa%2Fgh-action-semver-check/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Apkawa","download_url":"https://codeload.github.com/Apkawa/gh-action-semver-check/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Apkawa%2Fgh-action-semver-check/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268181046,"owners_count":24209147,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-01-24T15:15:33.869Z","updated_at":"2025-08-01T06:32:53.929Z","avatar_url":"https://github.com/Apkawa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![ci](https://github.com/Apkawa/gh-action-semver-check/actions/workflows/ci.yml/badge.svg)](https://github.com/Apkawa/gh-action-semver-check/actions/workflows/ci.yml)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\u003c/br\u003e\n\n# gh-action-semver-check\n\nCheck semver by [PEP-0440](https://peps.python.org/pep-0440/#pre-release-separators)\n\n# Usage\n\n```yaml\non:\n  push:\n    tags:\n      - 'v*'\n\njobs:\n  test-tag:\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: apkawa/gh-action-semver-check@master\n        id: version\n\n      - name: print output step\n        run: |\n          echo \"Print version\"\n          echo \"${{toJSON(steps.version.outputs)}}\"\n\n      - name: fail if not valid\n        run: exit 1\n        if: steps.version.outputs.is_valid != 'true'\n  test-custom:\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: apkawa/gh-action-semver-check@master\n        id: version\n        with:\n          raw: \"v1.2.3a1\"\n          prefix: \"\"\n\n      - name: print output step\n        run: |\n          echo \"Print version\"\n          echo \"${{toJSON(steps.version.outputs)}}\"\n\n      - name: fail if not valid\n        run: exit 1\n        if: steps.version.outputs.is_valid != 'true'\n```\n\n### Inputs\n\n| input            | required | description                                                                            |\n|------------------|----------|----------------------------------------------------------------------------------------|\n| `raw`            | no       | Version raw string. If not set - used `GITHUB_REF` env                                 |\n| `prefix`         | no       | Prefix before version. `refs/tags/` by default                                         |\n| `version_prefix` | no       | Version prefix in tag. `refs/tags/` is unnecessary. If not set - try detect \"v\" prefix |\n\n\n### Output\n\n| output              | description                                                                   |\n|---------------------|-------------------------------------------------------------------------------|\n| `is_valid`          | `true` if found valid version format in tag.                                  |\n| `is_stable`         | `true` if found stable version in tag. (not have pre-release or dev metadata) |\n| `is_unstable`       | `true` if found unstable version in tag. (have pre-release or dev metadata)   |\n| `is_prerelease`     | `true` if found pre-release version in tag.                                   |\n| `is_devrelease`     | `true` if found dev-release version in tag.                                   |\n| `is_postrelease`    | `true` if found post-release version in tag.                                  |\n| `full`              | Set full version as a string.                                                 |\n| `full_with_prefix`  | Set full version as a string (include version_prefix).                        |\n| `epoch`             | Set epoch version as a string.                                                |\n| `major`             | Set major version as a string.                                                |\n| `major_with_prefix` | Set major version as a string (include `version_prefix`).                     |\n| `minor`             | Set minor version as a string.                                                |\n| `patch`             | Set patch version as a string.                                                |\n| `prerelease`        | Set pre-release version as a string. Example: a1, b2, rc3                     |\n| `prerelease_phase`  | Set pre-release type as a string. Example: a, b, rc                           |\n| `prerelease_number` | Set pre-release version number as a string. Example: 1                        |\n| `dev`               | Set dev version as a string. Example: 1                                       |\n| `post`              | Set post version as a string. Example: 1                                      |\n| `local`             | Set local version.                                                            |\n\n### Example\n\n* `v0.1.2`\n  ```\n  {\n    is_valid: true,\n    is_stable: true,\n    is_unstable: false,\n    is_prerelease: false,\n    is_devrelease: false,\n    is_postrelease: false,\n    full: 0.1.2,\n    full_with_prefix: v0.1.2,\n    epoch: 0,\n    major: 0,\n    minor: 1,\n    patch: 2,\n    major_with_prefix: v0,\n  }\n  ```\n* `v1.2.3a1`\n  ```\n  {\n    is_valid: true,\n    is_stable: false,\n    is_unstable: true,\n    is_prerelease: true,\n    is_devrelease: false,\n    is_postrelease: false,\n    full: 1.2.3a1,\n    full_with_prefix: v1.2.3a1,\n    epoch: 0,\n    major: 1,\n    minor: 2,\n    patch: 3,\n    major_with_prefix: v1,\n    prerelease: a1,\n    prerelease_phase: a,\n    prerelease_number: 1\n  }\n  ```\n* `6!2.3.4a1post2dev1+rev1234.123.123`\n  ```\n  {\n    is_valid: true,\n    is_stable: false,\n    is_unstable: true,\n    is_prerelease: true,\n    is_devrelease: true,\n    is_postrelease: true,\n    full: 6!2.3.4a1post2dev1+rev1234.123.123,\n    full_with_prefix: 6!2.3.4a1post2dev1+rev1234.123.123,\n    epoch: 6,\n    major: 2,\n    minor: 3,\n    patch: 4,\n    major_with_prefix: v2,\n    prerelease: a1,\n    prerelease_phase: a,\n    prerelease_number: 1,\n    dev: 1,\n    post: 2,\n    local: rev1234.123.123\n  }\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapkawa%2Fgh-action-semver-check","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapkawa%2Fgh-action-semver-check","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapkawa%2Fgh-action-semver-check/lists"}