first commit
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
|||||||
|
name: Trigger Ansible Deploy
|
||||||
|
inputs:
|
||||||
|
task:
|
||||||
|
required: true
|
||||||
|
token:
|
||||||
|
required: true
|
||||||
|
ansible-repo:
|
||||||
|
default: alex/homelab
|
||||||
|
runs:
|
||||||
|
using: composite
|
||||||
|
steps:
|
||||||
|
- shell: bash
|
||||||
|
run: |
|
||||||
|
curl -fsS -X POST \
|
||||||
|
-H "Authorization: token ${{ inputs.token }}" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
"${{ github.server_url }}/api/v1/repos/${{ inputs.ansible-repo }}/actions/workflows/deploy.yml/dispatches" \
|
||||||
|
-d "$(jq -nc --arg task "${{ inputs.task }}" \
|
||||||
|
'{ref:"main", inputs:{task:$task}}')"
|
||||||
Reference in New Issue
Block a user