如何远程触发 GitHub Action
· ☕ 2 分钟
通常,我们需要在 GitHub 上进行一些操作,才能触发 GitHub Action。本篇将介绍一种通过 API 远程调用触发 GitHub Action 的方法。 1. 常见的几种触发 GitHub Action 的方式 下面是一个 GitHub Action 的示例: 1 2 3 4 5 6 7 name:GitHub Actions Demoon:[push, pull_request]jobs:Explore-GitHub-Actions:runs-on:ubuntu-lateststeps:- run:echo "Hello World!" 在 on 关键字下,定义的就是触发 Workflow 执行的事件。下面常用的几种 GitHub Action 事