From cc8a67c937b7b5d3c7ad566380ad61339291033e Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Mon, 7 Sep 2026 13:54:33 -0400 Subject: [PATCH] first commit --- action.yml | 19 +++++++++++++++++++ readme.md | 3 +++ 2 files changed, 22 insertions(+) create mode 100644 action.yml create mode 100644 readme.md 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.