{"id":15022202,"url":"https://github.com/tj-actions/semver-diff","last_synced_at":"2025-04-12T06:17:28.599Z","repository":{"id":37861919,"uuid":"370157879","full_name":"tj-actions/semver-diff","owner":"tj-actions","description":":octocat: Github action that compares versions based on the previous semantic version tag and the latest tag i.e (major, minor, patch, prerelease, build)","archived":false,"fork":false,"pushed_at":"2024-10-07T18:28:29.000Z","size":199,"stargazers_count":6,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-10T12:27:56.435Z","etag":null,"topics":["actions","bump2version","bumpversion","github","github-actions","semantic-version","semantic-versioning","semver-release","semver-tag","versioning"],"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/tj-actions.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":["jackton1"],"patreon":null,"open_collective":"tj-actions","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":[]}},"created_at":"2021-05-23T21:09:37.000Z","updated_at":"2024-10-07T18:28:24.000Z","dependencies_parsed_at":"2024-06-19T03:09:16.407Z","dependency_job_id":"e756a5d7-4de0-4e6e-a262-6e109231af12","html_url":"https://github.com/tj-actions/semver-diff","commit_stats":{"total_commits":261,"total_committers":6,"mean_commits":43.5,"dds":0.6245210727969348,"last_synced_commit":"7d52b19f0bd963e4ea905ea54c5a4ea4e2fe51fe"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj-actions%2Fsemver-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj-actions%2Fsemver-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj-actions%2Fsemver-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj-actions%2Fsemver-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tj-actions","download_url":"https://codeload.github.com/tj-actions/semver-diff/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219852408,"owners_count":16556212,"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":["actions","bump2version","bumpversion","github","github-actions","semantic-version","semantic-versioning","semver-release","semver-tag","versioning"],"created_at":"2024-09-24T19:57:38.229Z","updated_at":"2024-10-14T04:20:33.929Z","avatar_url":"https://github.com/tj-actions.png","language":"Shell","readme":"[![CI](https://github.com/tj-actions/semver-diff/workflows/CI/badge.svg)](https://github.com/tj-actions/semver-diff/actions?query=workflow%3ACI)\n[![Update release version.](https://github.com/tj-actions/semver-diff/workflows/Update%20release%20version./badge.svg)](https://github.com/tj-actions/semver-diff/actions?query=workflow%3A%22Update+release+version.%22)\n[![Public workflows that use this action.](https://img.shields.io/endpoint?url=https%3A%2F%2Fused-by.vercel.app%2Fapi%2Fgithub-actions%2Fused-by%3Faction%3Dtj-actions%2Fsemver-diff%26badge%3Dtrue)](https://github.com/search?o=desc\\\u0026q=tj-actions+semver-diff+path%3A.github%2Fworkflows+language%3AYAML\\\u0026s=\\\u0026type=Code)\n\n## semver-diff\n\nGet the difference between two semantic versions using [semver-tool](https://github.com/fsaintjacques/semver-tool)\n\n## Example\n\n![Screen Shot 2021-05-24 at 7 13 32 AM](https://user-images.githubusercontent.com/17484350/119339811-a6b92a80-bc5f-11eb-9f6f-475cae246545.png)\n\n## Usage\n\n```yaml\nname: Get semver diff\n\non:\n  release:\n    types:\n      - created\n  push:\n    tags:\n      - v*\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    name: semver-diff\n    steps:\n      - uses: actions/checkout@v3\n      - name: Run semver-diff\n        id: semver-diff\n        uses: tj-actions/semver-diff@v3\n      - name: Show release type\n        run: |\n          echo \"Release type: ${{ steps.semver-diff.outputs.release_type }}\"\n        # Outputs: Release type: major || minor || patch || prerelease || build\n```\n\n#### Using [bump2version](https://github.com/c4urself/bump2version)\n\n```yaml\nname: Upload Python Package\n\non:\n  release:\n    types: [created]\n\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n        with:\n          fetch-depth: 0\n\n      - name: Run semver-diff\n        id: semver-diff\n        uses: tj-actions/semver-diff@v3\n\n      - name: Set up Python\n        uses: actions/setup-python@v2\n        with:\n          python-version: '3.6.x'\n\n      - name: Install dependencies\n        ...\n\n      - name: Setup git\n        run: |\n          git config --local user.email \"github-actions[bot]@users.noreply.github.com\"\n          git config --local user.name \"github-actions[bot]\"\n\n      - name: bumpversion\n        run: |\n          bump2version \"${{ steps.semver-diff.outputs.release_type }}\"\n          git switch -c main \n       \n      - name: Build and publish to PyPi\n        ...\n        \n      - name: Create Pull Request\n        uses: peter-evans/create-pull-request@v3\n        with:\n          base: \"main\"\n          ...\n```\n\n## Inputs\n\n\u003c!-- AUTO-DOC-INPUT:START - Do not remove or modify this section --\u003e\n\n|                                            INPUT                                             |  TYPE  | REQUIRED |  DEFAULT  |                             DESCRIPTION                             |\n|----------------------------------------------------------------------------------------------|--------|----------|-----------|---------------------------------------------------------------------|\n| \u003ca name=\"input_initial_release_type\"\u003e\u003c/a\u003e[initial\\_release\\_type](#input_initial_release_type) | string |   true   | `\"patch\"` | Initial release type returned when \u003cbr\u003ethere are no existing tags.  |\n\n\u003c!-- AUTO-DOC-INPUT:END --\u003e\n\n## Outputs\n\n\u003c!-- AUTO-DOC-OUTPUT:START - Do not remove or modify this section --\u003e\n\n|                                 OUTPUT                                 |  TYPE  |                                                   DESCRIPTION                                                   |\n|------------------------------------------------------------------------|--------|-----------------------------------------------------------------------------------------------------------------|\n|  \u003ca name=\"output_new_version\"\u003e\u003c/a\u003e[new\\_version](#output_new_version)   | string |                                           The current project version                                           |\n|  \u003ca name=\"output_old_version\"\u003e\u003c/a\u003e[old\\_version](#output_old_version)   | string |                                          The previous project version                                           |\n| \u003ca name=\"output_release_type\"\u003e\u003c/a\u003e[release\\_type](#output_release_type) | string | The difference between two versions \u003cbr\u003eby the release type (`major`, `minor`, `patch`, `prerelease`, `build`)  |\n\n\u003c!-- AUTO-DOC-OUTPUT:END --\u003e\n\n*   Free software: [MIT license](LICENSE)\n\nIf you feel generous and want to show some extra appreciation:\n\n[![Buy me a coffee][buymeacoffee-shield]][buymeacoffee]\n\n[buymeacoffee]: https://www.buymeacoffee.com/jackton1\n\n[buymeacoffee-shield]: https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\n\n## Credits\n\nThis package was created with [Cookiecutter](https://github.com/cookiecutter/cookiecutter) using [cookiecutter-action](https://github.com/tj-actions/cookiecutter-action)\n\n## Report Bugs\n\nReport bugs at https://github.com/tj-actions/semver-diff/issues.\n\nIf you are reporting a bug, please include:\n\n*   Your operating system name and version.\n*   Any details about your workflow that might be helpful in troubleshooting.\n*   Detailed steps to reproduce the bug.\n","funding_links":["https://github.com/sponsors/jackton1","https://opencollective.com/tj-actions","https://www.buymeacoffee.com/jackton1"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftj-actions%2Fsemver-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftj-actions%2Fsemver-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftj-actions%2Fsemver-diff/lists"}