Actionsflow 项目使用教程

actionsflow The free Zapier/IFTTT alternative for developers to automate your workflows based on Github actions 项目地址: https://gitcode.com/gh_mirrors/ac/actionsflow

1. 项目的目录结构及介绍

Actionsflow 项目的目录结构如下:

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

目录结构介绍

2. 项目的启动文件介绍

Actionsflow 项目的启动文件主要是 .github/workflows/actionsflow.yml。这个文件定义了 Actionsflow 的工作流执行计划和触发条件。

启动文件内容

on: schedule: - cron: "*/15 * * * *" 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 ]]>>>" ]

启动文件介绍

3. 项目的配置文件介绍

Actionsflow 项目的配置文件主要包括 .github/workflows/actionsflow.ymlworkflows/ 目录下的各个工作流配置文件。

配置文件内容

.github/workflows/actionsflow.yml
on: schedule: - cron: "*/15 * * * *" 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 ]]>>>" ]
workflows/rss.yml
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 ]]>>>" ]

配置文件介绍

通过这些配置文件,Actionsflow 可以自动化地执行各种任务,如发送 HTTP 请求、处理 RSS 订阅等。

actionsflow The free Zapier/IFTTT alternative for developers to automate your workflows based on Github actions 项目地址: https://gitcode.com/gh_mirrors/ac/actionsflow