{"id":19211327,"url":"https://github.com/radwolfie/semantic-version-action","last_synced_at":"2025-07-23T06:34:41.458Z","repository":{"id":110459832,"uuid":"294855439","full_name":"RadWolfie/Semantic-Version-Action","owner":"RadWolfie","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-06T09:05:08.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-23T07:43:32.409Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RadWolfie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-09-12T02:37:33.000Z","updated_at":"2022-12-06T09:05:13.000Z","dependencies_parsed_at":"2023-04-23T13:16:11.267Z","dependency_job_id":null,"html_url":"https://github.com/RadWolfie/Semantic-Version-Action","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RadWolfie/Semantic-Version-Action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RadWolfie%2FSemantic-Version-Action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RadWolfie%2FSemantic-Version-Action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RadWolfie%2FSemantic-Version-Action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RadWolfie%2FSemantic-Version-Action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RadWolfie","download_url":"https://codeload.github.com/RadWolfie/Semantic-Version-Action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RadWolfie%2FSemantic-Version-Action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266631539,"owners_count":23959419,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":"2024-11-09T13:42:09.295Z","updated_at":"2025-07-23T06:34:41.433Z","avatar_url":"https://github.com/RadWolfie.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Semantic Version Action\n\n**NOTICE: It does not create local tag for you. You can create local tag from your workflow with `version_current` output variable.**\n\nThe following formats will be base on push, tag, and pull request.\n```\nv#.#.\u003cpatch\u003e (default)\nv#.#.# (Only exceptional for annotated tag event trigger.)\nv#.#.\u003cpatch\u003e+\u003c#######\u003e (forked repository)\nv#.#.\u003cpatch\u003e-pr\u003c#\u003e+\u003c#######\u003e (pull request)\n```\n * General event trigger will perform `v#.#.\u003cpatch\u003e` depending on initial version values or from previous tag.\n    * Patch is base on total commits from beginning of the branch excluding any commits came from merged commit.\n    * However, if operating from forked repository. Versioning will be treat as default method with addition of build hash.\n * Tag event will follow exactly semantic version, you will need to use annotated tag in order to get this event trigger.\n * Pull request will generate base on previous tag or initial version plus with format of `-pr\u003c#\u003e+\u003c#######\u003e`. Single digit number, `#`, will base on pull request number whilst `#######` is a build hash from merged commit.\n\n## Usage\n### Pre-requisites\nCreate a workflow `.yml` file in your `.github/workflows` directory. An [example workflow](#example-workflow---create-a-semantic-version) is available below. For more information, reference the GitHub Help Documentation for [Creating a workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file).\n\n### Inputs\n\n- `repository`: Default repository to focus on official release versioning.\n- `version_major_init`: Major initial version value.\n- `version_minor_init`: Minor initial version value.\n- `fetch_tags`: `true` to fetch tags information, `false` to assumed tags had been already fetched. Default: `false`\n\n### Outputs\n\n- `version_previous`: Previous tag version or otherwise will point to beginning of the branch.\n- `version_current`: Current tag version which will also have generated semantic version depending on events occur.\n\n### Example workflow - create a semantic version\nOn every `push` to a tag matching the pattern `v*`, any branches, pull request, or even on schedule for every five minutes will trigger the workflow.\n\n```yaml\non:\n  push:\n    # Sequence of patterns matched against refs/tags\n    tags:\n      - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10\n    # Any branches or specific branch\n    branches:\n  pull_request:\n  schedule:\n    - cron: '*/5 * * * *'\n\nname: Generate Semantic Version\n\njobs:\n  build:\n    name: Generate Semantic Version\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n        with:\n          fetch-depth: 0\n      - uses: RadWolfie/Semantic-Version-Action@main\n        id: semver-output\n        with:\n          repository: ${{ env.repo_default }}\n          version_major_init: 0\n          version_minor_init: 1\n      - name: Output Semantic Version\n        run: |\n          echo previous version: ${{ steps.semver-output.outputs.version_previous }}\n          echo current version: ${{ steps.semver-output.outputs.version_current }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradwolfie%2Fsemantic-version-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fradwolfie%2Fsemantic-version-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradwolfie%2Fsemantic-version-action/lists"}