{"id":22787359,"url":"https://github.com/aserto-dev/sver-action","last_synced_at":"2025-04-30T12:45:07.511Z","repository":{"id":65158966,"uuid":"347097840","full_name":"aserto-dev/sver-action","owner":"aserto-dev","description":"Github Action for calculating a repo's version","archived":false,"fork":false,"pushed_at":"2023-01-06T21:18:17.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-18T14:53:32.745Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/aserto-dev.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":"2021-03-12T14:42:31.000Z","updated_at":"2023-08-21T15:58:12.000Z","dependencies_parsed_at":"2023-02-06T09:16:26.918Z","dependency_job_id":null,"html_url":"https://github.com/aserto-dev/sver-action","commit_stats":{"total_commits":16,"total_committers":4,"mean_commits":4.0,"dds":0.4375,"last_synced_commit":"ef09e1bdae1ba809292a24778552bdc192ced01c"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fsver-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fsver-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fsver-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aserto-dev%2Fsver-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aserto-dev","download_url":"https://codeload.github.com/aserto-dev/sver-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251703190,"owners_count":21630194,"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":[],"created_at":"2024-12-12T00:54:25.060Z","updated_at":"2025-04-30T12:45:07.485Z","avatar_url":"https://github.com/aserto-dev.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# sver-action\n\nSemantic versioning action.\n\nCan output:\n\n- The current version of your repo, as calculated by [sver](https://github.com/aserto-dev/sver).\n- The next patch/minor/major version\n- The tags you should apply to your docker container image\n\n\n## Example\n\n```yaml\njobs:\n  build:\n    steps:\n      - uses: actions/checkout@v3\n      - name: Login to GitHub Packages Docker Registry\n        uses: docker/login-action@v1\n        with:\n          registry: https://ghcr.io\n          username: ${{ env.DOCKER_USERNAME }}\n          password: ${{ env.DOCKER_PASSWORD }}\n      - uses: aserto-dev/sver@v0\n        name: Calculate Tags\n        id: \"sver\"\n        with:\n          docker_image: ${{ env.DOCKER_IMAGE }}\n          docker_registry: \"https://ghcr.io\"\n          docker_registry_username: ${{ env.DOCKER_USERNAME }}\n          docker_registry_password: ${{ env.DOCKER_PASSWORD }}\n      - name: Push image to GitHub Container Registry\n        run: |\n          echo \"${{ steps.sver.outputs.version }}\" | \\\n            xargs -I{} bash -c \"docker tag my-image ghcr.io:{}' \\\n            \u0026\u0026 docker push '${{ env.DOCKER_IMAGE }}:{}'\n```\n\n## Inputs\n\n### `pre_release`\n\n**Optional** If specified, this pre release reference will be added to the calculated semantic version.\n\n### `docker_image`\n\n**Optional** If specified, sver will calculate the tags for your docker image.\n\n### `docker_registry`\n\n**Optional** Registry for the docker image.\n\n### `docker_username`\n\n**Optional** Credentials for connecting to the docker registry.\n\n### `docker_password`\n\n**Optional** Credentials for connecting to the docker registry.\n\n### `next`\n\n**Optional** Tells sver to print the next version, not the current one. Can be one of `patch`, `minor` or `major`.\n\n## Outputs\n\n### `version`\n\nThe calculated version.\nWhen using this to calculate tags, the output is a multiline string, with each tag on a separate line.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faserto-dev%2Fsver-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faserto-dev%2Fsver-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faserto-dev%2Fsver-action/lists"}