-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (39 loc) · 1.06 KB
/
Copy pathupdate.yml
File metadata and controls
47 lines (39 loc) · 1.06 KB
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
name: WinGet Tracker
env:
ACTIONS_STEP_DEBUG: true
on:
schedule:
- cron: "59,25 * * * *"
workflow_dispatch:
jobs:
update:
runs-on: windows-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.WINGET_TOKEN }}
- name: Install dependencies
shell: pwsh
run: |
Install-Module powershell-yaml -Scope CurrentUser -Force
winget install RussellBanks.Komac --source winget --accept-source-agreements --accept-package-agreements
- name: Check versions
shell: pwsh
run: |
./scripts/check-version.ps1
- name: Submit updates
shell: pwsh
run: |
./scripts/submit-winget.ps1
env:
WINGET_TOKEN: ${{ secrets.WINGET_TOKEN }}
ACTIONS_STEP_DEBUG: true
- name: Cleanup merged PR branches
shell: pwsh
run: |
./scripts/cleanup-merged-prs.ps1
env:
WINGET_TOKEN: ${{ secrets.WINGET_TOKEN }}
ACTIONS_STEP_DEBUG: true