2024-08-08 13:36:42 +00:00
|
|
|
name: 'Deploy to Skynet'
|
|
|
|
description: 'Update an input in the Skynet/nixos repo'
|
|
|
|
inputs:
|
|
|
|
input:
|
|
|
|
description: 'The input we want to update'
|
|
|
|
required: true
|
2024-08-08 13:47:55 +00:00
|
|
|
token:
|
|
|
|
description: 'Token for the API'
|
|
|
|
required: true
|
2024-08-08 13:36:42 +00:00
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: "Deploy to Skynet"
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2024-08-08 13:47:55 +00:00
|
|
|
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"}'
|