Skip to content

Commit 3883ee5

Browse files
authored
Merge pull request #2 from trossr32/upgrades
Update to dotnet 10 and latest action dependencies
2 parents ac2e362 + d08dc63 commit 3883ee5

File tree

4 files changed

+27
-18
lines changed

4 files changed

+27
-18
lines changed

.github/workflows/github-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v5
2121

2222
- name: Get Changelog Entry
2323
id: get-changelog-entry
@@ -36,7 +36,7 @@ jobs:
3636
EOInfo
3737
3838
- name: Release
39-
uses: softprops/action-gh-release@v1
39+
uses: softprops/action-gh-release@v2
4040
# only run if we have a changelog entry
4141
if: steps.get-changelog-entry.outputs.last-change-entry != ''
4242
with:

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# outdated-packages-action
22

3+
## 3.0.0
4+
5+
### Major Changes
6+
7+
- Change default dotnet version to 10.0.0
8+
- Update action dependencies to latest major versions (npm update check now uses node 20)
9+
310
## 2.0.0
411

512
### Major Changes

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ This action will run either or both of:
1515
>
1616
> If the action is re-run against a pull request that has already been commented on, the existing comment will be updated.
1717
>
18-
> `v1.7.0` and `v2.0.0` of this action are functionally identical, except `v1.7.0` defaults to using dotnet `8.*.*` and `v2.0.0` defaults to using dotnet `9.*.*`.
18+
> `v1.7.0`, `v2.0.0` and `v3.0.0` of this action are functionally identical, except `v1.7.0` defaults to using dotnet `8.*.*`, `v2.0.0` defaults to using dotnet `9.*.*` and `v3.0.0` defaults to using dotnet `10.*.*`.
19+
> `v3.0.0` also updates action dependencies to latest major versions (npm update check now uses node 20).
1920
2021
> [!WARNING]
2122
> This action is designed to be actioned only within the context of a pull request, no other scenarios are catered for.
@@ -36,7 +37,7 @@ This action will run either or both of:
3637

3738
#### `dotnet-version`
3839

39-
**Optional** - The version of dotnet to use. Default `9.*.*`.
40+
**Optional** - The version of dotnet to use. Default `10.*.*`.
4041

4142
#### `use-npm-outdated`
4243

@@ -75,7 +76,7 @@ jobs:
7576
pull-requests: write
7677

7778
steps:
78-
- uses: trossr32/outdated-packages-action@v2.0.0
79+
- uses: trossr32/outdated-packages-action@v3.0.0
7980
with:
8081
# Whether to run dotnet-outdated. Default is false if not supplied.
8182
use-dotnet-outdated: true
@@ -87,8 +88,8 @@ jobs:
8788
# Space delimited string of package names, e.g. "Microsoft.Extensions.Logging Microsoft.Extensions.Logging.Abstractions"
8889
dotnet-exclude-packages: ${{ env.EXCLUDE_PACKAGES }}
8990

90-
# The version of dotnet to use. Default is 9.*.*.
91-
dotnet-version: '9.*.*'
91+
# The version of dotnet to use. Default is 10.*.*.
92+
dotnet-version: '10.*.*'
9293

9394
# Whether to run npm-update-check-action. Default is false if not supplied.
9495
use-npm-outdated: true

action.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ inputs:
2020
required: false
2121
default: ''
2222

23-
# dotnet version, defaults to 9.*.*
23+
# dotnet version, defaults to 10.*.*
2424
dotnet-version:
2525
description: .NET version to use
2626
required: false
27-
default: '9.*.*'
27+
default: '10.*.*'
2828

2929
# exclude nuget packages from the check
3030
dotnet-exclude-packages:
@@ -53,13 +53,14 @@ inputs:
5353
runs:
5454
using: composite
5555
steps:
56-
- uses: actions/checkout@v4
56+
- uses: actions/checkout@v5
5757

5858
# Validate action inputs
5959
- name: Validate action inputs
6060
shell: bash
6161
run: |
6262
echo "use-dotnet-outdated: ${{ inputs.use-dotnet-outdated }}"
63+
echo "dotnet-version: ${{ inputs.dotnet-version }}"
6364
echo "dotnet-solution-or-project-path: ${{ inputs.dotnet-solution-or-project-path }}"
6465
echo "dotnet-exclude-packages: ${{ inputs.dotnet-exclude-packages }}"
6566
echo "use-npm-outdated: ${{ inputs.use-npm-outdated }}"
@@ -88,7 +89,7 @@ runs:
8889

8990
- name: NPM update check
9091
if: ${{ inputs.use-npm-outdated == 'true' }}
91-
uses: MeilCli/npm-update-check-action@v4
92+
uses: MeilCli/npm-update-check-action@v5
9293
id: npm-outdated-check
9394
with:
9495
execute_directories: ${{ inputs.npm-project-directory }}
@@ -113,15 +114,15 @@ runs:
113114
114115
- name: NPM outdated PR comment
115116
if: ${{ inputs.use-npm-outdated == 'true' && steps.npm-outdated.outputs.skip-comment == 'false' }}
116-
uses: thollander/actions-comment-pull-request@v2
117+
uses: thollander/actions-comment-pull-request@v3
117118
with:
118-
filePath: "${{ inputs.npm-project-directory }}/npm_outdated.md"
119-
comment_tag: npm_outdated
119+
file-path: "${{ inputs.npm-project-directory }}/npm_outdated.md"
120+
comment-tag: npm_outdated
120121

121122
# Dotnet outdated
122123
- name: Restore packages
123124
if: ${{ inputs.use-dotnet-outdated == 'true' }}
124-
uses: actions/setup-dotnet@v4
125+
uses: actions/setup-dotnet@v5
125126
with:
126127
dotnet-version: ${{ inputs.dotnet-version }}
127128

@@ -183,7 +184,7 @@ runs:
183184
184185
- name: Dotnet outdated PR comment
185186
if: ${{ inputs.use-dotnet-outdated == 'true' && steps.dotnet-outdated.outputs.skip-comment == 'false' }}
186-
uses: thollander/actions-comment-pull-request@v2
187+
uses: thollander/actions-comment-pull-request@v3
187188
with:
188-
filePath: "outdated.md"
189-
comment_tag: outdated
189+
file-path: "outdated.md"
190+
comment-tag: outdated

0 commit comments

Comments
 (0)