forked from Skynet/actions
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:
parent
47ec1809dd
commit
6d39914fcb
1 changed files with 4 additions and 1 deletions
|
@ -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"}'
|
||||
|
|
Loading…
Reference in a new issue