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: input:
description: 'The input we want to update' description: 'The input we want to update'
required: true required: true
token:
description: 'Token for the API'
required: true
runs: runs:
using: "composite" using: "composite"
steps: steps:
- name: "Deploy to Skynet" - name: "Deploy to Skynet"
shell: bash shell: bash
run: | 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"}'