fix: it needed a token passed in (env not shared it seems) and had teh wrong input for the input

This commit is contained in:
silver 2024-08-08 14:47:55 +01:00
parent 47ec1809dd
commit 6d39914fcb

View file

@ -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"}'