forked from Skynet/actions
feat: create composite action that can be used elsewhere
This commit is contained in:
parent
63f239149d
commit
af7a821953
1 changed files with 13 additions and 0 deletions
13
action.yml
Normal file
13
action.yml
Normal file
|
@ -0,0 +1,13 @@
|
|||
name: 'Deploy to Skynet'
|
||||
description: 'Update an input in the Skynet/nixos repo'
|
||||
inputs:
|
||||
input:
|
||||
description: 'The input we want to update'
|
||||
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"}'
|
Loading…
Reference in a new issue