Links

Quickstart

Try out FlyCode's GitHub Actions features in 5 minutes or less.

Introduction

You only need a GitHub repository to create and run a FlyCode Automation workflow. In this guide, you'll add a workflow demonstrating some of FlyCode Automation's essential features.
The following example shows you how GitHub Actions jobs can be automatically triggered, and how they can interact with the code in your repository.

Creating your first workflow

  1. 1.
    Create a .flycode/workflows directory in your repository if this directory does not already exists
  2. 2.
    In the .flycode/workflows directory, create a file named add-label.yaml.
  3. 3.
    Copy the following YAML contents into the add-label.yaml file:
name: Tag API pull requests
on:
pull_request:
types: [opened, reopened]
paths:
- "backend/*/*.controller.ts"
steps:
- action: add_label
with:
label: API
4. Create a commit with the new workflow file and push it to your repository
5. Create a backend/user directory in your repository if this directory does not already exist.
6. In the backend/user directory create a file named user.controller.ts.
7. Create a new branch, create a commit with the new file, push the branch, and create a pull request.
Creating a pull request in your repository with a file whose path conforms to the path defined in the workflow file runs your workflow.