{"id":24531946,"url":"https://github.com/julbme/gh-action-semver-release-vars","last_synced_at":"2026-05-12T16:01:54.745Z","repository":{"id":42436335,"uuid":"463216410","full_name":"julbme/gh-action-semver-release-vars","owner":"julbme","description":"GitHub actions to compute Semver release vars","archived":false,"fork":false,"pushed_at":"2022-12-03T21:03:22.000Z","size":676,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-04T00:08:27.721Z","etag":null,"topics":["ci","github-actions","release","semver"],"latest_commit_sha":null,"homepage":"https://julbme.github.io/gh-action-semver-release-vars/","language":"Java","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/julbme.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}},"created_at":"2022-02-24T16:17:43.000Z","updated_at":"2022-03-17T16:33:32.000Z","dependencies_parsed_at":"2023-01-22T17:15:28.888Z","dependency_job_id":null,"html_url":"https://github.com/julbme/gh-action-semver-release-vars","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":0.2857142857142857,"last_synced_commit":"d9e0bd94f369ae4891ad3cbd3e46cf27f4571eb6"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/julbme/gh-action-semver-release-vars","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julbme%2Fgh-action-semver-release-vars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julbme%2Fgh-action-semver-release-vars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julbme%2Fgh-action-semver-release-vars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julbme%2Fgh-action-semver-release-vars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/julbme","download_url":"https://codeload.github.com/julbme/gh-action-semver-release-vars/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/julbme%2Fgh-action-semver-release-vars/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32946410,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["ci","github-actions","release","semver"],"created_at":"2025-01-22T09:16:56.030Z","updated_at":"2026-05-12T16:01:54.704Z","avatar_url":"https://github.com/julbme.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build](https://github.com/julbme/gh-action-semver-release-vars/actions/workflows/maven-build.yml/badge.svg)](https://github.com/julbme/gh-action-semver-release-vars/actions/workflows/maven-build.yml)\n[![Lint Commit Messages](https://github.com/julbme/gh-action-semver-release-vars/actions/workflows/commitlint.yml/badge.svg)](https://github.com/julbme/gh-action-semver-release-vars/actions/workflows/commitlint.yml)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=julbme_gh-action-semver-release-vars\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=julbme_gh-action-semver-release-vars)\n![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/julbme/gh-action-semver-release-vars)\n\n# GitHub Action to compute SemVer release vars\n\nThe GitHub Action for computing SemVer release vars.\n\nAs pre-requisite, it should be invoked from a release branch:\n* `releases/trigger`\n* `releases/trigger-\u003cversion-to-release\u003e`\n\nMaintenances branches can be defined among these patterns:\n* `maintenances/\u003cmajor\u003e.x`\n* `maintenances/\u003cmajor\u003e.\u003cminor\u003e.x`\n\n## Usage\n\n### Example Workflow file\n\n```yaml\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Merge branch\n        uses: julbme/gh-action-semver-release-vars@v1\n        with:\n          package_version: 1.0.0\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n### Inputs\n\n|       Name        |  Type  | Default |                                                      Description                                                       |\n|-------------------|--------|---------|------------------------------------------------------------------------------------------------------------------------|\n| `package_version` | string | ` `     | The release version set in the package manager's file in the current branch. It is used as release version by default. |\n\n### Outputs\n\n|             Name              |  Type  |                                                                                                                     Description                                                                                                                      |\n|-------------------------------|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `version`                     | string | The release version. Ex: `1.2.3-rc.1+abcdef`                                                                                                                                                                                                         |\n| `version_major`               | string | The release version major value. Ex: `1.2.3-rc.1+abcdef` =\u003e `1`                                                                                                                                                                                      |\n| `version_minor`               | string | The release version minor value. Ex: `1.2.3-rc.1+abcdef` =\u003e `2`                                                                                                                                                                                      |\n| `version_patch`               | string | The release version patch value. Ex: `1.2.3-rc.1+abcdef` =\u003e `3`                                                                                                                                                                                      |\n| `version_suffix`              | string | The release version suffix value. Ex: `1.2.3-rc.1+abcdef` =\u003e `rc.1`                                                                                                                                                                                  |\n| `version_build`               | string | The release version build value. Ex: `1.2.3-rc.1+abcdef` =\u003e `abcdef`                                                                                                                                                                                 |\n| `git_tag`                     | string | The git tag for that version. Ex: `1.2.3-rc.1+abcdef` =\u003e `v1.2.3-rc.1+abcdef`                                                                                                                                                                        |\n| `git_tag_major`               | string | The git tag with major version only if the release version is the latest in major scope. Ex: `1.2.3-rc.1+abcdef` =\u003e `v1` or ``                                                                                                                       |\n| `git_tag_minor`               | string | The git tag with major/minor version only if the release version is the latest in major/minor scope. Ex: `1.2.3-rc.1+abcdef` =\u003e `v1.2` or ``                                                                                                         |\n| `git_tag_patch`               | string | The git tag with major/minor/patch version only if the release version is the latest in major/minor/patch scope. Ex: `1.2.3-rc.1+abcdef` =\u003e `v1.2.3` or ``                                                                                           |\n| `docker_tag`                  | string | The Docker tag for that version. Ex: `1.2.3-rc.1+abcdef` =\u003e `1.2.3-rc.1+abcdef`                                                                                                                                                                      |\n| `docker_tag_major`            | string | The Docker tag with major version only if the release version is the latest in major scope. Ex: `1.2.3-rc.1+abcdef` =\u003e `1` or ``                                                                                                                     |\n| `docker_tag_minor`            | string | The Docker tag with major/minor version only if the release version is the latest in major/minor scope. Ex: `1.2.3-rc.1+abcdef` =\u003e `1.2` or ``                                                                                                       |\n| `docker_tag_patch`            | string | The Docker tag with major/minor/patch version only if the release version is the latest in major/minor/patch scope. Ex: `1.2.3-rc.1+abcdef` =\u003e `1.2.3` or ``                                                                                         |\n| `next_major_version`          | string | If major-incremented, the next version. Ex: `1.2.3-rc.1+abcdef` =\u003e `2.0.0`                                                                                                                                                                           |\n| `next_minor_version`          | string | If minor-incremented, the next version. Ex: `1.2.3-rc.1+abcdef` =\u003e `1.3.0`                                                                                                                                                                           |\n| `next_patch_version`          | string | If patch-incremented, the next version. Ex: `1.2.3-rc.1+abcdef` =\u003e `1.2.4`                                                                                                                                                                           |\n| `next_major_snapshot_version` | string | If major-incremented, the next version with SNAPSHOT suffix. Ex: `1.2.3-rc.1+abcdef` =\u003e `2.0.0-SNAPSHOT`                                                                                                                                             |\n| `next_minor_snapshot_version` | string | If minor-incremented, the next version with SNAPSHOT suffix. Ex: `1.2.3-rc.1+abcdef` =\u003e `1.3.0-SNAPSHOT`                                                                                                                                             |\n| `next_patch_snapshot_version` | string | If patch-incremented, the next version with SNAPSHOT suffix. Ex: `1.2.3-rc.1+abcdef` =\u003e `1.2.4-SNAPSHOT`                                                                                                                                             |\n| `trigger_branch`              | string | The branch which triggered the release. Ex: `releases/trigger`                                                                                                                                                                                       |\n| `trigger_branch_ref`          | string | The branch ref which triggered the release. Ex: `refs/heads/releases/trigger`                                                                                                                                                                        |\n| `run_branch`                  | string | The temporary branch in which release commits can be pushed before being merged in target branch. Ex: `releases/run-123456`                                                                                                                          |\n| `run_branch_ref`              | string | The temporary branch ref in which release commits can be pushed before being merged in target branch. Ex: `refs/heads/releases/run-123456`                                                                                                           |\n| `target_branch`               | string | The target branch in which release commits should be merged if successful. It will try to resolve the corresponding maintenance branch. If not found, it will use the project default branch. Ex: `main` or `maintenances/1.x`                       |\n| `target_branch_ref`           | string | The target branch in which release commits should be merged if successful. It will try to resolve the corresponding maintenance branch. If not found, it will use the project default branch. Ex: `refs/heads/main` or `refs/heads/maintenances/1.x` |\n\n## Contributing\n\nThis project is totally open source and contributors are welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulbme%2Fgh-action-semver-release-vars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulbme%2Fgh-action-semver-release-vars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulbme%2Fgh-action-semver-release-vars/lists"}