From 6d39914fcbdcbf81cec031b9ab214e04b3f1b78a Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Thu, 8 Aug 2024 14:47:55 +0100 Subject: [PATCH] fix: it needed a token passed in (env not shared it seems) and had teh wrong input for the input --- action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 2cb129c..4f54319 100644 --- a/action.yml +++ b/action.yml @@ -4,10 +4,13 @@ inputs: input: description: 'The input we want to update' required: true + token: + description: 'Token for the API' + 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"}' + curl -X 'POST' 'https://forgejo.skynet.ie/api/v1/repos/Skynet/nixos/actions/workflows/update_input.yaml/dispatches?token=${{ inputs.token }}' -H 'accept: application/json' -H 'Content-Type: application/json' -d '{"inputs": {"input_to_update": "${{ inputs.input }}"}, "ref": "main"}'