Automation #8051
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
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 }} |