ci: test dispatch
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
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 "$GITHUB_API_URL/repos/codinget/actions-test/actions/workflows/test-inputs/dispatches"
|
||||||
|
-X POST
|
||||||
|
-H "Authorization: token $ACTIONS_RUNTIME_TOKEN"
|
||||||
|
-H "Content-Type: application/json" -d '{
|
||||||
|
"ref": "refs/heads/main",
|
||||||
|
"inputs": {
|
||||||
|
"restart": ${{ inputs.restart }}
|
||||||
|
}
|
||||||
|
}'
|
||||||
Reference in New Issue
Block a user