-
Notifications
You must be signed in to change notification settings - Fork 15
46 lines (35 loc) · 1000 Bytes
/
packages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# 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