Skip to content

Automation

Automation #2891

Workflow file for this run

name: Automation
on:
schedule:
- cron: 1 * * * *
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.2
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 }}