Packages #588
This file contains 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
# 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 | |