Skip to content

Repositório da StackSpot action de configuração de Workflow nos providers Github, Gitlab, Bitbucket e Azure para execução dos workflows da StackSpot para criação de App/Infra/Api. Esse repositório contém também as StackSpot Actions e Plugin para criação de repositórios.

Notifications You must be signed in to change notification settings

stack-spot/stackspot-workflows-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stackspot-workflows-action

This repository contains stackspot actions, these actions exists to attend stackspot workflows. Here we have two types of action:

Setup action

The setup action is a static action, which was made simplify scm setup with Stackspot. You can know more here.

Crete repository actions

Each provider has your own action in your respective directory into stackspot-actions. Feel free to clone it and add features before publish it into your studio. But first, before modifying, there are two common points of implementation that a developer should pay attention:

  1. Stackspot workflow api by default, when identifies a "create repository action", it adds 5 hidden inputs to the stk run action workflow call. Even if you do not declare then in action.yml they will be added. But if you declare then in action manifest, the stackspot portal will ask these inputs when you try to dispatch a workflow, then they will not be overwritten. These inputs are:

    • name: copied from the app/infra which will be created by the workflow.
    • description: copied from the description of the app/infra which will be created by the workflow.
    • org: it's the org from the workflow url, which is configured into scm integration page. Ex: https://dev.azure.com/stackspot-azure/stackspot the value of org will be stackspot-azure
    • token: The token which was configured into scm integration page, it is used to create the repository by the scm api.
    • workflow_api_authorization: A valid token with the same rules of portal user, which dispatched the workflow, that token can be used to call stackspot apis.
  2. For now, to the workflow work well, the action need to open a file named "stk-local-context.json" and write the name of created repository as value of the following key in the object:

{
    "outputs": {
        "created_repository": "<https_repository_clone_path>"
    }
}

About

Repositório da StackSpot action de configuração de Workflow nos providers Github, Gitlab, Bitbucket e Azure para execução dos workflows da StackSpot para criação de App/Infra/Api. Esse repositório contém também as StackSpot Actions e Plugin para criação de repositórios.

Topics

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages