https://github.com/xt0rted/dotnet-sdk-updater
Update global.json files with the latest SDK version
https://github.com/xt0rted/dotnet-sdk-updater
dependabot dotnet dotnet-core dotnet-sdk github-actions hacktoberfest
Last synced: 6 months ago
JSON representation
Update global.json files with the latest SDK version
- Host: GitHub
- URL: https://github.com/xt0rted/dotnet-sdk-updater
- Owner: xt0rted
- License: mit
- Created: 2022-02-11T03:22:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T05:36:49.000Z (over 1 year ago)
- Last Synced: 2024-05-01T21:50:02.369Z (over 1 year ago)
- Topics: dependabot, dotnet, dotnet-core, dotnet-sdk, github-actions, hacktoberfest
- Language: TypeScript
- Homepage:
- Size: 3.06 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# dotnet-sdk-updater
[](https://github.com/xt0rted/dotnet-sdk-updater/actions/workflows/ci.yml)
[](https://github.com/xt0rted/dotnet-sdk-updater/actions/workflows/codeql-analysis.yml)Update `global.json` files with the latest SDK version.
## Usage
```yaml
- uses: xt0rted/dotnet-sdk-updater
```## Inputs
Name | Description | Default
-- | -- | --
`dry-run` | Checks if an update is available but doesn't update the file. | `false`
`file-location` | The location of the global.json to check. | `./`## Outputs
Name | Description | Example
-- | -- | --
`channel` | The major and minor version of the sdk. | `6.0`
`cve-list` | A json array of any CVEs included in the release. | `[{"id": "CVE-2022-21986", "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-21986"}]`
`dry-run` | Same value as the dry-run input. | `false`
`release-date` | The date of the release. | `2022-02-08`
`release-notes` | A URL to the release notes for the release. | `https://github.com/dotnet/core/blob/main/release-notes/6.0/6.0.2/6.0.2.md`
`release-version` | The version of the runtime for the release. | `6.0.2`
`security-release` | If this release contains security fixes. | `true`
`updated` | If the file was updated with a new version. | `true`
`updated-version-from` | The starting version in the global.json. | `6.0.101`
`updated-version-to` | The new version in the global.json. | `6.0.102`
`update-type` | The difference between the from and to version (major, premajor, minor, preminor, patch, prepatch, or prerelease). | `patch`## License
The scripts and documentation in this project are released under the [MIT License](LICENSE)