Files
action-tests/.gitea/workflows/test-dispatch.yaml
T
2026-05-22 23:18:38 +00:00

34 lines
1.1 KiB
YAML

name: Test Dispatch
on:
workflow_dispatch:
inputs:
restart:
description: Restart gitea after updating the theme files
required: false
type: boolean
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: |-
curl -sv "$GITHUB_API_URL/repos/codinget/actions-test/actions/workflows/test-inputs.yaml/dispatches" \
-X POST \
-H "Authorization: token ${{ gitea.token }}" \
-H "Content-Type: application/json" \
-d '{
"ref": "refs/heads/main",
"inputs": {
"restart": ${{ inputs.restart }}
}
}'
test-with-tea:
runs-on: ubuntu-latest
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 -r "${{ gitea.repository }}" -r main --login "gitea" test-inputs.yaml