-
Notifications
You must be signed in to change notification settings - Fork 9
48 lines (48 loc) · 1.52 KB
/
automation.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
name: Automation
on:
schedule:
- cron: 0 * * * *
workflow_dispatch:
inputs:
params:
description: Additional parameters passed to the script
required: false
type: string
jobs:
build:
name: Build
runs-on: windows-latest
concurrency:
group: ${{ github.workflow }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: Dumplings
- name: Checkout upstream winget-pkgs
uses: actions/checkout@v4
with:
repository: microsoft/winget-pkgs
path: winget-pkgs
- name: Install WinGet client
run: .\Utilities\InstallWinGet.ps1
working-directory: Dumplings
shell: powershell
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cache and install PowerShell modules
uses: potatoqualitee/psmodulecache@v6.0
with:
modules-to-cache: powershell-yaml, PowerHTML
- name: Run tasks
run: .\Index.ps1 -ThrottleLimit 3 -EnableWrite -EnableMessage -EnableSubmit ${{ github.event.inputs.params }}
working-directory: Dumplings
shell: pwsh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_DUMPLINGS_TOKEN: ${{ secrets.GH_DUMPLINGS_TOKEN }}
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
TG_CHAT_ID: ${{ secrets.TG_CHAT_ID }}
MT_BOT_TOKEN: ${{ secrets.MT_BOT_TOKEN }}
MT_ROOM_ID: ${{ secrets.MT_ROOM_ID }}
DUMPLINGS_SECRET: ${{ secrets.DUMPLINGS_SECRET }}