{"id":18668109,"url":"https://github.com/siqilu/dotnet-bump-version","last_synced_at":"2025-04-12T00:22:33.911Z","repository":{"id":40718202,"uuid":"263104814","full_name":"SiqiLu/dotnet-bump-version","owner":"SiqiLu","description":"A GitHub Action to easily bump .NET Core project version files(.csproj).","archived":false,"fork":false,"pushed_at":"2023-01-07T21:52:54.000Z","size":43580,"stargazers_count":14,"open_issues_count":4,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T03:02:56.805Z","etag":null,"topics":["actions","bumpversion","dotnet"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/SiqiLu.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":"2020-05-11T16:59:48.000Z","updated_at":"2024-08-09T17:02:33.000Z","dependencies_parsed_at":"2023-02-08T02:33:04.666Z","dependency_job_id":null,"html_url":"https://github.com/SiqiLu/dotnet-bump-version","commit_stats":{"total_commits":29,"total_committers":4,"mean_commits":7.25,"dds":0.4482758620689655,"last_synced_commit":"e4326f6cceb704455d1320973a7c12eee7bf3604"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiqiLu%2Fdotnet-bump-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiqiLu%2Fdotnet-bump-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiqiLu%2Fdotnet-bump-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SiqiLu%2Fdotnet-bump-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SiqiLu","download_url":"https://codeload.github.com/SiqiLu/dotnet-bump-version/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248498260,"owners_count":21114074,"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","bumpversion","dotnet"],"created_at":"2024-11-07T08:41:22.871Z","updated_at":"2025-04-12T00:22:28.880Z","avatar_url":"https://github.com/SiqiLu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dotnet-bump-version\n\nA GitHub Action to easily bump .NET Core project version files(.csproj).\n\n-   Bumps the version number in the provided version files(default **/*.csproj).\n-   Push changes to the repository that triggered a workflow.\n\nThis action program only supports \"push\" events.\n\n## Usage\n\n\u003c!-- start usage --\u003e\n\n```yaml\n- uses: SiqiLu/dotnet-bump-version@master\n  with:\n      # Version files to bump version. \n      # You can use Glob pattern string (like \"**/*.csproj\") or Glob patterns array json string (like \"[\"**/*.csproj\", \"v1.version\", \"**/*.version.json\", \"!v2.version.json\"]\"). # # Patterns supported by Globby are supported. Leading ! changes the meaning of an include pattern to exclude.\n      # default: \"**/*.csproj\"\n      # required: false\n      version_file: \"**/*.csproj\"\n      \n      # Control which part of the version to be bumped. \n      # Example:\n      #   \"1.0.0.0\": Bump the major part of the version.  2.3.4.5 =\u003e 3.0.0.0\n      #   \"0.1.0.0\": Bump the minor part of the version.  2.3.4.5 =\u003e 2.4.0.0\n      #   \"0.0.1.0\": Bump the patch part of the version.  2.3.4.5 =\u003e 2.3.5.0\n      #   \"0.0.0.1\": Bump the minor part of the version.  2.3.4.5 =\u003e 2.3.4.6\n      #   \"1.0.1.0\": Bump the major and the patch part of the version.  2.3.4.5 =\u003e 3.0.5.0\n      #   \"1.1.1.1\": Bump all the parts of the version.  2.3.4.5 =\u003e 3.4.5.6 \n      # default: \"0.0.1.0\"\n      # required: false\n      version_mask: \"0.0.1.0\"\n\n      # Overwrite the bumped version. Use this input option to overwrite the version or part of the version. \n      # If you want to modified all versions in the version files to a specifed version number, you should use this input option. \n      # If you do not want overwrite the version or any part of the version, you should just ignore this input option. \n      # Example:\n      #   \"*.*.*.*\" does not overwrite ant part of the version.\n      #   \"1.*.*.*\" overwrite the major part with number 1.\n      #   \"*.*.*.Alpha\" overwrite the build part with string \"Alpha\".\n      #   \"*.*.*.${{ github.run_number }}\" overwrite the build part with ${{ github.run_number }}.'\n      # default: \"*.*.*.*\"\n      # required: false\n      version_overwrite: \"*.*.*.*\"\n\n      # The github token to push changes. Leave the github_token option as default or empty string, the action will not push any changes to your repository.\n      # required: false\n      github_token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n\u003c!-- end usage --\u003e\n\n## Example usage\n\n```yaml\nname: .NET Build\n\non: \n    # Triggers the workflow on push events but only for the \"master\" branch\n    push:\n        branches: [ \"master\" ]\n\n    # Allows you to run this workflow manually from the Actions tab\n    workflow_dispatch:\n\n# A workflow run is made up of one or more jobs that can run sequentially or in parallel\njobs:\n    build:\n        runs-on: windows-latest\n\n        steps:\n            - uses: actions/checkout@v3\n            - name: Setup .NET Core\n              uses: actions/setup-dotnet@v2\n              with:\n                  dotnet-version: 6.0.x\n            - name: Install dependencies\n              run: dotnet restore\n            - name: Build\n              run: dotnet build --configuration Release --no-restore\n            - name: Bump versions\n              uses: SiqiLu/dotnet-bump-version@2.1.0\n              with:\n                  version_files: \"**/*.csproj\"\n                  version_mask: 0.0.1.0\n                  version_overwrite: \"*.*.*.*\"\n                  github_token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n## Test cases\n\n- [x]   1.0.0.0 =\u003e 1.0.0.1\n- [x]   2.3.4.5 =\u003e 2.3.5.0\n- [x]   2.3.4.5 =\u003e 3.0.0.0\n- [x]   2.3.4.5 =\u003e 3.0.5.0\n- [x]   2.3.4 =\u003e 2.4.0\n- [x]   2.3.4 =\u003e 3.0.0\n- [x]   2.3 =\u003e 2.4\n- [x]   2.3 =\u003e 3.0\n- [x]   2 =\u003e 3\n- [x]   2.3.4.5 =\u003e 2.3.4.${{ github.run_number }}\n- [x]   2.3.4.5 =\u003e 2.3.4.Alpha\n- [x]   2.3 =\u003e 2.${{ github.run_number }}\n- [x]   2.3.4.5 =\u003e 3.Alpha.5.${{ github.run_number }}\n\n## Break changes\n\n-  Version 1.0.*, this action bump the build part of the version with the default action input options.\n-  2.3.4.5 =\u003e 2.3.4.6\n\n-  Version 2.0.*, this action bump the patch part of the version with the default action input options.\n-  2.3.4.5 =\u003e 2.3.5.0\n\n## License\n\nThe scripts and documentation in this project are released under the [MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiqilu%2Fdotnet-bump-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiqilu%2Fdotnet-bump-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiqilu%2Fdotnet-bump-version/lists"}