commit cc8a67c937b7b5d3c7ad566380ad61339291033e Author: Alex Frantz Date: Mon Sep 7 13:54:33 2026 -0400 first commit diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..d579178 --- /dev/null +++ b/action.yml @@ -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}}')" diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..6aa5bcc --- /dev/null +++ b/readme.md @@ -0,0 +1,3 @@ +# deploy-action + +The deploy action I use across all of my repositories to easily deploy applications in my Ansible setup.