Skip to content

Packages

Packages #623

Workflow file for this run

# Workflow that runs every day at 00:00 and checks for new packages
name: Packages
on:
push:
branches: [ main ]
schedule:
- cron: '40 0 * * *'
workflow_dispatch:
jobs:
check:
runs-on: windows-latest
steps:
# Checkout branch nightly-packages
- name: Checkout branch nightly-packages
uses: actions/checkout@v3
with:
ref: nightly-packages
# Checkout winget-pkgs
- name: Checkout winget-pkgs
uses: actions/checkout@v3
with:
repository: microsoft/winget-pkgs
path: ./winget-pkgs
# Run the script
- name: Run the script
run: |
./updater.ps1
# Commit the changes
- name: Commit the changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "Eric"
git add pkgs.json
git commit -m "Update pkgs $((Get-Date).ToString(`"yyyy-MM-dd`"))"
git push