Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meilcli/nuget-update-check-action
nuget new package version check action for GitHub Actions.
https://github.com/meilcli/nuget-update-check-action
actions github-actions nuget nuget-package
Last synced: 8 days ago
JSON representation
nuget new package version check action for GitHub Actions.
- Host: GitHub
- URL: https://github.com/meilcli/nuget-update-check-action
- Owner: MeilCli
- License: mit
- Created: 2019-09-28T15:06:17.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-01T09:02:50.000Z (7 months ago)
- Last Synced: 2024-05-01T12:35:44.229Z (7 months ago)
- Topics: actions, github-actions, nuget, nuget-package
- Language: TypeScript
- Homepage: https://github.com/MeilCli/actions
- Size: 2.6 MB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# nuget-update-check-action
[![CI-Master](https://github.com/MeilCli/nuget-update-check-action/actions/workflows/ci-master.yml/badge.svg)](https://github.com/MeilCli/nuget-update-check-action/actions/workflows/ci-master.yml)
nuget new package version check action for GitHub Actions.## Required
This action must execute after [setup-dotnet](https://github.com/actions/setup-dotnet) and `dotnet restore`..NET Core version is required 2.2 or higher.
## Example
Slack notification example, using [8398a7/action-slack](https://github.com/8398a7/action-slack):```yaml
name: Check Packageon:
schedule:
- cron: '0 8 * * 5' # every friday AM 8:00
jobs:
nuget:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '3.0.100'
- run: dotnet restore
- uses: MeilCli/nuget-update-check-action@v4
id: outdated
- uses: 8398a7/action-slack@v2
if: steps.outdated.outputs.has_nuget_update != 'false'
with:
status: ${{ job.status }}
text: ${{ steps.outdated.outputs.nuget_update_text }}
author_name: GitHub Actions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
```
You can also pin to a [specific release](https://github.com/MeilCli/nuget-update-check-action/releases) version in the format `@v4.x.x`## input
- `project_or_solution_files`
- optional
- target project or solution files
- if multiple files, write multiline
- `config`
- optional
- The NuGet sources to use when searching for newer packages
- `source`
- optional
- The NuGet sources to use when searching for newer packages
- `frameworks`
- Displays only the packages applicable for the specified target framework
- if multiple files, write multiline
- `highest_minor`
- optional
- Considers only the packages with a matching major version number when searching for newer packages
- value: `true` or `false`, default: `false`
- `highest_patch`
- optional
- Considers only the packages with a matching major and minor version numbers when searching for newer packages
- value: `true` or `false`, default: `false`
- `include_prerelease`
- optional
- Considers packages with prerelease versions when searching for newer packages
- value: `true` or `false`, default: `false`## output
- `has_nuget_update`
- has new package version information
- value: `true` or `false`
- `nuget_update_text`
- new package version information text
- `nuget_update_json`
- new package version information json## Contributes
[](https://github.com/MeilCli/nuget-update-check-action/graphs/contributors)### Could you want to contribute?
see [Contributing.md](./.github/CONTRIBUTING.md)## License
[](LICENSE)