Sync NuGet Packages #42
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: Sync NuGet Packages | |
| on: | |
| schedule: | |
| # Run daily at 2:00 AM UTC | |
| - cron: '0 2 * * *' | |
| workflow_dispatch: | |
| # Allow manual triggering | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| sync-packages: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5.6.0 | |
| with: | |
| python-version: '3.12' | |
| - name: Set up .NET Core | |
| uses: actions/setup-dotnet@v4.3.1 | |
| with: | |
| dotnet-version: '8.0.x' | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . | |
| - name: Run NuGet sync script | |
| run: python scripts/sync_nuget.py sync packages.yml | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_NUGET_TOKEN }} | |
| AZ_DEVOPS_PAT: ${{ secrets.AZ_DEVOPS_PAT }} |