From af7a82195310e3fdcb2936b6b0e7b0ab4a331871 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Thu, 8 Aug 2024 14:36:42 +0100 Subject: [PATCH] feat: create composite action that can be used elsewhere --- action.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..2cb129c --- /dev/null +++ b/action.yml @@ -0,0 +1,13 @@ +name: 'Deploy to Skynet' +description: 'Update an input in the Skynet/nixos repo' +inputs: + input: + description: 'The input we want to update' + required: true +runs: + using: "composite" + steps: + - name: "Deploy to Skynet" + shell: bash + run: | + curl -X 'POST' 'https://forgejo.skynet.ie/api/v1/repos/Skynet/nixos/actions/workflows/update_input.yaml/dispatches?token=${{ secrets.API_TOKEN_FORGEJO }}' -H 'accept: application/json' -H 'Content-Type: application/json' -d '{"inputs": {"input_to_update": "${{ inputs.who-to-greet }}"}, "ref": "main"}'