Update Packages #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update Packages | |
| on: | |
| workflow_dispatch: # Manual trigger (workflow also runs on weekly schedule below) | |
| schedule: | |
| - cron: "0 0 * * 0" # Run weekly on Sunday at midnight UTC | |
| permissions: | |
| contents: read | |
| jobs: | |
| update-packages: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v6 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: | | |
| 8.0.x | |
| 9.0.x | |
| 10.0.x | |
| - name: Update NuGet packages | |
| run: | | |
| echo "Checking for outdated packages..." | |
| dotnet list ExperimentFramework.slnx package --outdated | tee outdated-packages.txt || true | |
| echo "" | |
| echo "Note: This workflow is for manual review of outdated packages." | |
| echo "Dependabot (configured in .github/dependabot.yml) will automatically create PRs for updates." | |
| echo "The outdated packages report has been saved as an artifact for review." | |
| - name: Upload outdated packages report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: outdated-packages-report | |
| path: | | |
| outdated-packages.txt | |
| retention-days: 7 | |
| if-no-files-found: ignore |