23 lines
694 B
YAML
23 lines
694 B
YAML
name: Test Dispatch
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
restart:
|
|
description: Restart gitea after updating the theme files
|
|
required: false
|
|
type: boolean
|
|
|
|
jobs:
|
|
test-with-tea:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
actions: write
|
|
|
|
steps:
|
|
- name: Install tea
|
|
run: curl -sL "https://dl.gitea.com/tea/0.14.1/tea-0.14.1-linux-amd64" -o tea && chmod +x tea
|
|
- name: Add token
|
|
run: ./tea login add --url "${{ gitea.server_url }}" --token "${{ gitea.token }}" --name gitea
|
|
- name: Trigger with tea
|
|
run: ./tea actions workflows dispatch --repo "${{ gitea.repository }}" --ref main --login "gitea" test-inputs.yaml
|