{"id":13531343,"url":"https://github.com/WyriHaximus/github-action-next-semvers","last_synced_at":"2025-04-01T19:32:00.873Z","repository":{"id":37518502,"uuid":"216040726","full_name":"WyriHaximus/github-action-next-semvers","owner":"WyriHaximus","description":"Github Action that output the next version for major, minor, and patch version based on the given semver version.","archived":false,"fork":false,"pushed_at":"2024-08-18T03:13:47.000Z","size":586,"stargazers_count":58,"open_issues_count":6,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-14T19:34:43.898Z","etag":null,"topics":["action","github","github-actions","hacktoberfest","semver"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/WyriHaximus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"WyriHaximus"}},"created_at":"2019-10-18T14:19:36.000Z","updated_at":"2024-05-25T00:30:15.000Z","dependencies_parsed_at":"2024-09-01T18:41:41.517Z","dependency_job_id":null,"html_url":"https://github.com/WyriHaximus/github-action-next-semvers","commit_stats":{"total_commits":54,"total_committers":6,"mean_commits":9.0,"dds":"0.38888888888888884","last_synced_commit":"457613e26ef6948c2bbbcf432324b9700cc28ec9"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WyriHaximus%2Fgithub-action-next-semvers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WyriHaximus%2Fgithub-action-next-semvers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WyriHaximus%2Fgithub-action-next-semvers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WyriHaximus%2Fgithub-action-next-semvers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WyriHaximus","download_url":"https://codeload.github.com/WyriHaximus/github-action-next-semvers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246308051,"owners_count":20756482,"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":["action","github","github-actions","hacktoberfest","semver"],"created_at":"2024-08-01T07:01:02.225Z","updated_at":"2025-04-01T19:31:56.200Z","avatar_url":"https://github.com/WyriHaximus.png","language":"PHP","funding_links":["https://github.com/sponsors/WyriHaximus"],"categories":["Community Resources","PHP","五、按场景分类的实用Action"],"sub_categories":["Utility","4. 版本管理与发布"],"readme":"# Next SemVers\n\nGitHub Action that output the next version for major, minor, and patch version based on the given semver version.\n\n![Example output showing this action in action](images/output.png)\n\n## Options\n\nThis action supports the following options.\n\n### version\n\nThe version we want to have the next versions for.\n\n* *Required*: `Yes`\n* *Type*: `string`\n* *Example*: `v1.2.3` or `1.2.3`\n\n### strict\n\nStrict version validation, when turned off, the version is suffixed with `.0` until it contains 3 x `.`.\n\n* *Required*: `No`\n* *Type*: `string`\n* *Example*: `true` or `false`\n\n## Output\n\nThis action output 6 slightly different outputs. A new major, minor, and patch version and a variant of those prefixed\nwith a `v`. For example when you input `1.2.3` it will give you the following outputs:\n\n* `major`: `2.0.0`\n* `minor`: `1.3.0`\n* `patch`: `1.2.4`\n* `v_major`: `v2.0.0`\n* `v_minor`: `v1.3.0`\n* `v_patch`: `v1.2.4`\n\nIn addition, if your input contains an indicator that it is a pre-release (e.g., `1.2.3-alpha`), the output for `patch` version changes accordingly (while the behaviour for `major` and `minor` are not affected and work as usual):\n\n* `major`: `2.0.0`\n* `minor`: `1.3.0`\n* `patch`: `1.2.3`\n* `v_major`: `v2.0.0`\n* `v_minor`: `v1.3.0`\n* `v_patch`: `v1.2.3`\n\n\n## Example\n\nThe following example works together with the [`WyriHaximus/github-action-get-previous-tag`](https://github.com/marketplace/actions/get-latest-tag)\nand [`WyriHaximus/github-action-create-milestone`](https://github.com/marketplace/actions/create-milestone) actions.\nWhere it uses the output from that action to supply a set of versions for the next action, which creates a new\nmilestone. (This snippet has been taken from the automatic code generation of [`wyrihaximus/fake-php-version`](https://github.com/wyrihaximus/php-fake-php-version/).)\n\n```yaml\nname: Generate\njobs:\n  generate:\n    steps:\n      - uses: actions/checkout@v1\n      - name: 'Get Previous tag'\n        id: previoustag\n        uses: \"WyriHaximus/github-action-get-previous-tag@v1\"\n        env:\n          GITHUB_TOKEN: \"${{ secrets.GITHUB_TOKEN }}\"\n      - name: 'Get next minor version'\n        id: semvers\n        uses: \"WyriHaximus/github-action-next-semvers@v1\"\n        with:\n          version: ${{ steps.previoustag.outputs.tag }}\n      - name: 'Create new milestone'\n        id: createmilestone\n        uses: \"WyriHaximus/github-action-create-milestone@v1\"\n        with:\n          title: ${{ steps.semvers.outputs.patch }}\n        env:\n          GITHUB_TOKEN: \"${{ secrets.GITHUB_TOKEN }}\"\n```\n\n## License ##\n\nCopyright 2019 [Cees-Jan Kiewiet](http://wyrihaximus.net/)\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWyriHaximus%2Fgithub-action-next-semvers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWyriHaximus%2Fgithub-action-next-semvers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWyriHaximus%2Fgithub-action-next-semvers/lists"}