-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (58 loc) · 1.63 KB
/
single-update.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Update Package
on:
workflow_dispatch:
inputs:
identifier:
description: Package.Identifier
required: true
urls:
description: URLs space separated
required: false
version:
description: Version
required: false
WebsiteURL:
description: WebsiteURL
required: false
submit:
description: 'True to auto-submit'
required: true
type: boolean
default: false
resolves:
description: 'resolves this issues'
required: false
With:
required: true
type: choice
description: 'WinGetCreate or komac'
default: 'komac'
options:
- komac
- WinGetCreate
# schedule:
# - cron: '3 12 * * *' # every 4 hours
permissions:
contents: write
pull-requests: write
jobs:
komac-update:
name: ${{ inputs.identifier }} -s ${{ inputs.submit }}
# if: ${{ inputs.submit }}
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update package
id: update_version
env:
GITHUB_TOKEN: ${{ secrets.WINGET_PAT }}
WINGET_PKGS_FORK_REPO: ${{ vars.WINGET_PKGS_FORK_REPO }}
PackageName: ${{ inputs.identifier }}
With: ${{ inputs.With }}
Submit: ${{ inputs.submit }}
latestVersion: ${{ inputs.version }}
latestVersionUrl: ${{ inputs.urls }}
resolves: ${{ inputs.resolves }}
WebsiteURL: ${{ inputs.WebsiteURL }}
run: .\scripts\Update-ScriptPackage.ps1