Skip to content

Commit 0c830d7

Browse files
committed
Initial commit
0 parents  commit 0c830d7

5 files changed

Lines changed: 69 additions & 0 deletions

File tree

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM mcr.microsoft.com/dotnet/sdk:5.0
2+
3+
RUN dotnet tool install --global dotnet-outdated-tool
4+
5+
COPY entrypoint.sh /entrypoint.sh
6+
7+
ENTRYPOINT ["/entrypoint.sh"]

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Maricopa County Library District
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Dotnet-Outdated-Action
2+
3+
This is a [GitHub Action](https://docs.github.com/en/free-pro-team@latest/actions) for running [dotnet-outdated](https://github.com/dotnet-outdated/dotnet-outdated) against .NET projects.
4+
5+
## Usage
6+
7+
Create a file in your repository such as `.github/workflows/dotnet-outdated.yml`:
8+
9+
```yaml
10+
name: Run dotnet outdated
11+
12+
on: [pull_request]
13+
14+
jobs:
15+
dotnet-outdated:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
21+
- uses: mcld/dotnet-outdated@v1
22+
```
23+
24+
## License
25+
26+
The content of the dotnet-outdated-action repository is distributed under [The MIT License](http://opensource.org/licenses/MIT).
27+
28+
The [dotnet-outdated](https://github.com/dotnet-outdated/dotnet-outdated) utility itself is also released under [The MIT License](https://github.com/dotnet-outdated/dotnet-outdated/blob/master/LICENSE).

action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: 'dotnet outdated action'
2+
description: 'Report on outdated NuGet packages in .NET projects'
3+
runs:
4+
using: 'docker'
5+
image: 'Dockerfile'
6+

entrypoint.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh -l
2+
3+
export DOTNET_CLI_TELEMETRY_OPTOUT=1
4+
export PATH="$PATH:/root/.dotnet/tools"
5+
6+
dotnet restore && dotnet outdated -f
7+

0 commit comments

Comments
 (0)