Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update NuGet packages #17020

Closed
wants to merge 14 commits into from
46 changes: 46 additions & 0 deletions .github/workflows/update-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Update NuGet packages

on:
workflow_dispatch:
schedule:
# Every Sunday at 8am
- cron: '0 8 * * Sun'

permissions:
issues: write
pull-requests: write

env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
jobs:
main:
runs-on: ubuntu-latest
name: Check Versions and Create PR
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Run dotnet outdated
run: |
dotnet tool install --global dotnet-outdated-tool
cd ./src/OrchardCore.Modules/OrchardCore.Markdown
OUTPUT=$(dotnet-outdated --version-lock major --upgrade)
if [[ $OUTPUT =~ "No outdated dependencies were detected" ]]; then
echo "::set-output name=updated::false"
else
echo "::set-output name=updated::true"
fi
shell: bash
- name: Create pull request
run: |
git config user.name "github-actions"
git config user.email "[email protected]"
git checkout -b outdated
git commit -am "Update NuGet packages"
git push origin HEAD --force
gh pr create --base main -H outdated --title 'Update NuGet packages' --body 'Created by Github action'

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<PackageVersion Include="Lucene.Net.QueryParser" Version="4.8.0-beta00016" />
<PackageVersion Include="Lucene.Net.Spatial" Version="4.8.0-beta00016" />
<PackageVersion Include="MailKit" Version="4.8.0" />
<PackageVersion Include="Markdig" Version="0.37.0" />
<PackageVersion Include="Markdig" Version="0.38.0" />
<PackageVersion Include="Microsoft.Extensions.Azure" Version="1.7.5" />
<PackageVersion Include="Microsoft.Identity.Web" Version="3.2.0" />
<!--
Expand Down Expand Up @@ -161,7 +161,7 @@
<PackageVersion Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="$(AspNetCorePackagesVersion)" />
<PackageVersion Include="Microsoft.AspNetCore.Authentication.Twitter" Version="$(AspNetCorePackagesVersion)" />
<PackageVersion Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="$(AspNetCorePackagesVersion)" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="$(AspNetCorePackagesVersion)" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="8.0.11" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="$(AspNetCorePackagesVersion)" />
<PackageVersion Include="Microsoft.AspNetCore.Owin" Version="$(AspNetCorePackagesVersion)" />
</ItemGroup>
Expand Down