<!-- NOTE!!! This markdown file is automatically generated from <root>/README.md, please edit <root>/README.md if you need to change it-->

<p align="center">
  <a href="https://actionsflow.github.io" rel="noopener">
 <img width=200px height=200px src="https://raw.githubusercontent.com/actionsflow/actionsflow/main/docs/assets/logo.svg" alt="Project logo"></a>
</p>

<h1 align="center">Actionsflow</h1>

<div align="center">

[![Actionsflow](https://img.shields.io/static/v1?label=&message=actionsflow&color=brightgreen&labelColor=white&style=flat&logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjA0OCIgaGVpZ2h0PSIyMDQ4IiB2aWV3Qm94PSIwIDAgMjA0OCAyMDQ4IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxlbGxpcHNlIGN4PSI1NjAuNzUxIiBjeT0iOTE0LjYzIiByeD0iMTUxLjUzNCIgcnk9IjI1Mi41OTkiIGZpbGw9IiNmZmYiLz48ZWxsaXBzZSBjeD0iOTE1LjQxNSIgY3k9IjkxNy4yODkiIHJ4PSIxNTEuNTM0IiByeT0iMjUyLjU5OSIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0tNzM1LjAxNSAxOC4yNDJjMCA0MDYuNjA0IDMyOC40MTEgNzM1LjAxNSA3MzUuMDE1IDczNS4wMTUgNDAzLjQ3NyAwIDczMS44ODgtMzI4LjQxMSA3MzUuMDE2LTczMS44ODgtMy4xMjggMTAwLjA4OC04NC40NDkgMTc4LjI4MS0xODQuNTM2IDE3OC4yODFTMzY1Ljk0NCAxMTguMzI5IDM2NS45NDQgMTUuMTE0di0yMTcuODkxYzAtMzAzLjM5LTI0Ny4wOS01NTAuNDgtNTUwLjQ4LTU1MC40OC0zMDMuMzg5IDAtNTUwLjQ3OSAyNDcuMDktNTUwLjQ3OSA1NTAuNDhWMTguMjQyem0yNzQuOTgtMzIxLjI0M2M2NC40NzcgMCAxMTcuNDExIDUyLjUzNiAxMTcuMDEzIDExNy4wMTN2MTYzLjk3N0MtMzQzLjAyMiA0Mi40NjUtMzk1Ljk1NiA5NS00NjAuMDM1IDk1Yy02NC4wNzggMC0xMTcuMDEzLTUyLjEzOC0xMTcuMDEzLTExNy4wMTJ2LTE2My45NzdjMC02NC40NzcgNTIuNTM3LTExNy4wMTMgMTE3LjAxMy0xMTcuMDEzem0zNDMuMDIgMGM2NC40NzYgMCAxMTcuNDEgNTIuNTM2IDExNy4wMTMgMTE3LjAxM3YxNjMuOTc3Qy0uMDAyIDQyLjQ2NS01Mi45MzcgOTUtMTE3LjAxNSA5NVMtMjM0LjAyOCA0Mi44NjMtMjM0LjAyOC0yMi4wMXYtMTYzLjk3N2MwLTY0LjQ3NyA1Mi41MzctMTE3LjAxMyAxMTcuMDEzLTExNy4wMTN6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMDI0IDEwMjQpIiBpZD0iZG9jdW1lbnQiLz48ZWxsaXBzZSBjeD0iOTUwLjE2OSIgY3k9IjgzOC4xOTciIHJ4PSIuNjYxIiByeT0iNS40NjUiIGZpbGw9IiNkOGQ4ZDgiLz48L3N2Zz4=)](https://github.com/actionsflow/actionsflow)
[![npm version](https://img.shields.io/npm/v/actionsflow.svg)](https://npmjs.org/package/actionsflow)
[![npm](https://img.shields.io/npm/dw/actionsflow)](https://npmjs.org/package/actionsflow)
[![Docker Pulls](https://img.shields.io/docker/pulls/actionsflow/actionsflow)](https://hub.docker.com/r/actionsflow/actionsflow)
[![Build](https://github.com/actionsflow/actionsflow/workflows/Test/badge.svg)](https://github.com/actionsflow/actionsflow/actions?query=workflow%3ATest)
[![codecov](https://codecov.io/gh/actionsflow/actionsflow/branch/main/graph/badge.svg?token=XsDPqlOTew)](https://codecov.io/gh/actionsflow/actionsflow)
[![GitHub Issues](https://img.shields.io/github/issues/actionsflow/actionsflow.svg)](https://github.com/actionsflow/actionsflow/issues)
[![GitHub Pull Requests](https://img.shields.io/github/issues-pr/actionsflow/actionsflow.svg)](https://github.com/actionsflow/actionsflow/pulls)
[![GitHub stars](https://img.shields.io/github/stars/actionsflow/actionsflow)](https://github.com/actionsflow/actionsflow/stargazers)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](/LICENSE)
<br>

</div>

---

<p align="center">
<strong>The free <a href="https://ifttt.com/">IFTTT</a>/<a href="https://zapier.com/">Zapier</a> alternative for developers to automate their workflows based on Github actions</strong>
<br>
<br>
</p>

<div align="center">
  <h2>Sponsorships</h2>
  <br>
  <a href="https://meercode.io/?utm_campaign=github_repo&utm_medium=referral&utm_content=actionsflow&utm_source=github">
    <div>
      <img src="https://raw.githubusercontent.com/actionsflow/actionsflow/main/docs/assets/meercode-logo.png" width="192" alt="Meercode">
      </div>
      <b>Meercode is the ultimate monitoring dashboard for your GitHub Actions.</b>
      <div>
        <sup>It's impossible to improve what you can't measure! Get Real Insights and Metrics From Your CI usage</sup>
      </div>
  </a>
</div>

---

## 📝 Table of Contents

- [About](#-about)
- [Features](#-features)
- [Documentation](#-documentation)
- [How Actionsflow Works](#-how-actionsflow-works)
- [Getting Started](#-getting-started)
- [Contributing](#-how-to-contribute)
- [Authors](#-authors)

## 😁 About

[Actionsflow](https://github.com/actionsflow/actionsflow) helps you automate workflows - it's a free [IFTTT](https://ifttt.com/)/[Zapier](https://zapier.com/) alternative for developers. With [Actionsflow](https://github.com/actionsflow/actionsflow) you can connect your favorite apps, data, and APIs, receive notifications of actions as they occur, sync files, collect data, and more. We implemented it based on [Github actions](https://docs.github.com/en/actions), and you use a YAML file to build your workflows. The configuration format is the same as [Github actions](https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow), which makes it easy for you to get going if you've explored Github actions before. You can also use any [Github actions](https://github.com/marketplace?type=actions) as your job's steps.

You can learn more about the core concepts of Actionsflow [here](#-how-actionsflow-works).

## 🔥 Features

- **Totally Free!** Actionsflow is based on [Github actions](https://docs.github.com/en/actions). To run an Actionsflow workflow, all you need to do is [create a repository from the Actionsflow template repository](https://github.com/actionsflow/actionsflow-workflow-default/generate), or, you can also [deploy a self-hosted version](https://actionsflow.github.io/docs/self-hosted).
- **Leverage Community Triggers**. You can use [community-provided triggers](https://actionsflow.github.io/docs/triggers/#triggers-list) like Slack, RSS, Webhook, Typeform, Email, Reddit, NPM, Telegram, Twitter, etc. You can also easily [create your own triggers](https://actionsflow.github.io/docs/creating-triggers/).
- **Support Almost ALL Actions of [Github Actions](https://github.com/marketplace?type=actions)**. Actionsflow uses [act](https://github.com/nektos/act) (a tool for running GitHub Actions locally) to run the jobs on your workflow file. With [these awesome Github actions](https://actionsflow.github.io/docs/actions/), you can connect with IFTTT, Zapier, or other services like Slack, Telegram, Facebook, Twitter, Line, etc.
- **Support Self-Hosted** You can run Actionsflow based on both GitHub Repository or [a self-hosted version](https://actionsflow.github.io/docs/self-hosted).
- **Simple Workflow Configuration**. The Actionsflow configuration format is the same as [Github actions](https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow). If you've written a [Github actions file](https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow) before, you'll find defining an Actionsflow workflow file really easy.
- **Run triggers every 5 minutes**. The workflow can check and run every 5 minutes based on [Github actions scheduled events](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events).
- **Support complex workflows**. With Actionsflow you can make complex advanced workflows. Actionsflow provides a [MongoDB query language](https://actionsflow.github.io/docs/workflow/#ontriggerconfigfilter) for you to filter your data as you want.

## 🎓 Documentation

Full documentation for Actionsflow lives [on the website](https://actionsflow.github.io/docs/).

You can also [view it on Github](https://github.com/actionsflow/actionsflow/blob/main/docs/index.md) if you prefer.

## 👀 How Actionsflow works

Actionsflow uses [Github Actions](https://docs.github.com/en/actions)' [**`repository_dispatch` event**](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#repository_dispatch) and [**`scheduled` event**](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events) every 5 minutes to run [Actionsflow triggers](https://actionsflow.github.io/docs/triggers/). Those triggers generate result **items**, which are cached and deduplicated, generating a standard Github actions workflow file with the trigger result. Finally, the workflows are executed using [act](https://github.com/nektos/act) (a tool for running GitHub Actions locally).

To learn more about how Actionsflow works, please see [Core Concepts of Actionsflow](https://actionsflow.github.io/docs/concepts/).

## 🏁 Getting Started

> For self-hosted version please see [here](https://actionsflow.github.io/docs/self-hosted)

1. **Create a public Github repository by using [this link](https://github.com/actionsflow/actionsflow-workflow-default/generate).**

   A typical Actionsflow repository structure looks like this:

   ```sh
   ├── .github
   │   └── workflows
   │       └── actionsflow.yml
   ├── .gitignore
   ├── README.md
   └── workflows
   │   └── rss.yml
   │   └── webhook.yml
   └── package.json
   ```

1. **Uncomment `.github/workflows/actionsflow.yml` schedule event**

   ```yml
   on:
     schedule:
       - cron: "*/15 * * * *"
   ```

   > Note: To prevent abuse, by default, the schedule is commented, please modify the schedule time according to your own needs, the default is once every 15 minutes. Learn more about schedule event, please see [here](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#schedule)

1. **Create your [workflow files](https://actionsflow.github.io/docs/workflow/) inside the `workflows` directory**

   A typical workflow file `rss.yml` looks like this:

   ```yaml
   on:
     rss:
       url: https://hnrss.org/newest?points=300&count=3
   jobs:
     request:
       name: Make a HTTP Request
       runs-on: ubuntu-latest
       steps:
         - name: Make a HTTP Request
           uses: actionsflow/axios@v1
           with:
             url: https://hookb.in/VGPzxoWbdjtE22bwznzE
             method: POST
             body: |
               {
                 "link":"${{ on.rss.outputs.link }}", 
                 "title": "${{ on.rss.outputs.title }}",
                 "content":"<<<${{ on.rss.outputs.contentSnippet }}>>>"
               }
   ```

   For more information about the Actionsflow workflow file, see the
   [Actionsflow workflow reference](https://actionsflow.github.io/docs/workflow/).

   You can find examples and inspiration on the [Trigger List](https://actionsflow.github.io/docs/triggers/) and on [Awesome Actionsflow Workflows](https://github.com/actionsflow/awesome-actionsflow).

1. **Commit and push your updates to Github**

Pushing to Github makes Actionsflow run the workflows you defined. You can view logs at your repository's actions tab on [Github](https://github.com).

For more information about getting up and running, see [Getting Started](https://actionsflow.github.io/docs/getting-started/).

# 🎓 Learn More

Full documentation for Actionsflow lives [on the website](https://actionsflow.github.io/docs/).

- [Workflow Syntax for Actionsflow](https://actionsflow.github.io/docs/workflow/) - Learn more about the Actionsflow workflow file syntax
- [Trigger List](https://actionsflow.github.io/docs/triggers/) - Explore Actionsflow triggers
- [Awesome Actionsflow Workflows](https://github.com/actionsflow/awesome-actionsflow) - Explore and get inspired by other Actionsflow workflow use-cases
- [Core Concepts](https://actionsflow.github.io/docs/concepts/) - Learn more about how Actionsflow works
- [Creating Triggers for Actionsflow](https://actionsflow.github.io/docs/creating-triggers/) - Learn more about how to create your own trigger for Actionsflow
- [FAQs](https://actionsflow.github.io/docs/faqs/) - Actionsflow FAQs
- [Join Actionsflow on Slack](https://forms.gle/9VvTVne6oU7zBCeVA) - Chat with other users and contributors on Slack, if you have already joined, please [signin](https://actionsflow.slack.com) directly
- [Join Actionsflow on Telegram](https://t.me/joinchat/fMXYRGHMnK01MjUx) - Chat with other users and contributors on Telegram

## 👏 How to Contribute

Whether you're helping us fix bugs, improve the docs, or spread the word, we'd love to have you as part of the Actionsflow community! 💪💜

Check out our [Contributing Guide](https://actionsflow.github.io/docs/contributing/) for ideas on contributing and setup steps for getting our repositories up and running on your local machine.

## ✋ Authors

- [@theowenyoung](https://github.com/theowenyoung) - Idea & Initial work

See also the list of [contributors](https://github.com/actionsflow/actionsflow/contributors) who participated in this project.

## 📝 License

Licensed under the [MIT License](https://github.com/actionsflow/actionsflow/blob/main/LICENSE).
