Skip to content

Commit 4a8ca6e

Browse files
committed
stk-cli: create action initial commit.
1 parent 13386d0 commit 4a8ca6e

File tree

5 files changed

+136
-0
lines changed

5 files changed

+136
-0
lines changed

runtime-unified-action/.stkignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Este arquivo pode ser usado para ignorar arquivos e pastas ao publicar um artefato.

runtime-unified-action/action.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
schema-version: v3
2+
kind: action
3+
metadata:
4+
name: runtime-unified-action
5+
display-name: runtime-unified-action
6+
description: Descreva sua action explicando o propósito.
7+
version: 0.0.1
8+
spec:
9+
type: python
10+
docs:
11+
pt-br: docs/pt-br/docs.md
12+
en-us: docs/en-us/docs.md
13+
repository: https://github.com/stack-spot/workflow-stackspot-actions-runtime-selfhosted.git
14+
inputs:
15+
- label: What is your name?
16+
name: user_name
17+
type: text
18+
required: false
19+
pattern: '^[A-Za-z]+(?:\s[A-Za-z]+)*$'
20+
help: 'Inform your name'
21+
python:
22+
workdir: .
23+
script: script.py
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<!--
2+
******************************************
3+
4+
- THIS IS AN EXAMPLE OF HOW TO FILL OUT YOUR DOCUMENTATION OF CONTENT.
5+
6+
- FILL OUT THE TEMPLATE BELOW WITH YOUR INFORMATION SO OTHER PEOPLE CAN USE IT. THIS DOCUMENTATION WILL APPEAR ON THE SECTION OF THE STACKSPOT PORTAL.
7+
8+
******************************************
9+
-->
10+
## Action name
11+
12+
<!-- Write concisely describing your Action. -->
13+
14+
## Requirements
15+
16+
<!--
17+
[This is a guideline; delete this content and write your information outside this markup. <!-- ]
18+
19+
- Describe the requirements that the user needs to know before using the Action.
20+
-->
21+
22+
## Usage
23+
24+
<!--
25+
[This is a guideline; delete this content and write your information outside this markup. <!-- ]
26+
27+
Add the steps for the user to use your Action:
28+
29+
- What are the inputs?
30+
- Which methods should we know?
31+
- What are the resources?
32+
- Add the Action dependencies, if necessary.
33+
34+
Example:
35+
On your application’s folder, run the **action-doc-template** action and follow the instructions:
36+
1. Execute the command:
37+
`
38+
stk run action /Users/Home/action-doc-template
39+
`
40+
-->
41+
42+
## Release Notes
43+
44+
<!--
45+
[This is a guideline; delete this content and write your information outside this markup. <!-- ]
46+
47+
This section is only necessary if you publish a new Action version. Add what was changed, fixed, and the new features.
48+
49+
Example:
50+
### action-doc-template v1.0.0
51+
52+
#### Features
53+
Added new templates
54+
-->
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<!--
2+
******************************************
3+
4+
- ESTE É APENAS UM EXEMPLO DE COMO PREENCHER A DOCUMENTAÇÃO DO SEU CONTEUDO.
5+
6+
- PREENCHA O TEMPLATE COM AS INFORMAÇÕES DO SEU CONTEUDO PARA QUE OUTROS USUÁRIO CONSIGAM UTILIZÁ-LO. ESSA DOCUMENTAÇÃO SERÁ EXPOSTA NA PÁGINA DO CONTEUDO NO PORTAL DA STACKSPOT.
7+
8+
******************************************
9+
-->
10+
## Nome Action
11+
12+
<!-- Escreva uma descrição clara e breve sobre a sua Action. -->
13+
14+
## Pré-requisitos
15+
16+
<!--
17+
[Isto é uma orientação, apague essa o conteúdo e escreva suas informações fora desta marcação <!-- ]
18+
19+
- Descreva quais os requisitos que o usuário precisa saber antes de usar a Action.
20+
-->
21+
22+
## Uso
23+
24+
<!--
25+
[Isto é uma orientação, apague essa o conteúdo e escreva suas informações fora desta marcação <!-- ]
26+
27+
Descreva as etapas para o usuário utilizar esta Action:
28+
29+
- Quais as entradas
30+
- Quais os métodos usar
31+
- Quais os recursos
32+
- E se necessário, adicione as dependências de sua Action.
33+
34+
Exemplo:
35+
Na pasta do seu aplicativo, execute a **action-doc-template** para preencher os arquivos abaixo:
36+
1. Execute o comando:
37+
`
38+
stk run action /Users/Home/action-doc-template
39+
`
40+
-->
41+
42+
## Release Notes
43+
44+
<!--
45+
[Isto é uma orientação, apague essa o conteúdo e escreva suas informações fora desta marcação <!-- ]
46+
47+
Esta seção só é necessária se você publicar uma nova versão da Action. Apenas adicione o que foi modificado ou adicionado.
48+
49+
Exemplo:
50+
### action-doc-template v1.0.0
51+
52+
#### Features
53+
Novos templates foram adicionados.
54+
-->

runtime-unified-action/script.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
3+
def run(metadata):
4+
print(f"Hello {metadata.inputs.get('user_name')}!")

0 commit comments

Comments
 (0)