forked from Skynet/wiki
28 lines
717 B
YAML
28 lines
717 B
YAML
# This is to deploy it to our nixos repo
|
|
|
|
name: Deploy
|
|
|
|
on:
|
|
# for testing
|
|
workflow_dispatch:
|
|
inputs:
|
|
input_to_update:
|
|
description: 'Flake input to update'
|
|
required: false
|
|
type: string
|
|
workflow_run:
|
|
workflows: [ "Build" ]
|
|
types:
|
|
- completed
|
|
|
|
env:
|
|
INPUT: skynet_website_renew
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: nix
|
|
steps:
|
|
- name: "Deploy to Skynet"
|
|
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": "$INPUT"}, "ref": "main"}'
|
|
|