This repository has been archived on 2024-09-02. You can view files and clone it, but cannot push or open issues or pull requests.
actions-deploy-to-skynet/action.yml

17 lines
618 B
YAML
Raw Normal View History

name: 'Deploy to Skynet'
description: 'Update an input in the Skynet/nixos repo'
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=${{ inputs.token }}' -H 'accept: application/json' -H 'Content-Type: application/json' -d '{"inputs": {"input_to_update": "${{ inputs.input }}"}, "ref": "main"}'