当然,这位作者也是把这个非常骚的Action做成了一个插件,插件的地址是:https://github.com/marketplace/actions/no-free-usage-action ,使用起来非常简单。 以下是我简单使用的脚本案例: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 name:No Free usage issue checkeron:
name:buildon:[push]jobs:build:runs-on:ubuntu-lateststeps:-name:Checkoutuses:actions/checkout@v2-name:Build imagerun:make build-name:Login Registryuses:docker/login-action@v1with:registry:ghcr.iousername:${{github.repository_owner}}password:${{secrets.GHCR_TOKEN}}-name:Push imagerun:docker p...
In this guide, you'll learn about the basic components needed to create and use a packaged JavaScript action. To focus this guide on the components needed to package the action, the functionality of the action's code is minimal. The action prints "Hello World" in the logs or "Hello [who...
简单来说就是可以在我们提交代码到远程仓库后,gitHub Actions可以自动触发,并执行我们事先设定的动作(action)。 这些动作指的是一系列的运行流程,而且gitHub Actions有一个actions的市场,github用户可以在那里发布自己写的action,也可以使用其他用户发布的action。 当你在gitHub创建了自己博客的仓库并上传了代码,在仓库的...
In this guide, you'll learn about the basic components needed to create and use a packaged JavaScript action. To focus this guide on the components needed to package the action, the functionality of the action's code is minimal. The action prints "Hello World" in the logs or "Hello [who...
本教程主要讲解了怎么使用 Jenkins 和 Github Actions 部署前端项目。第一部分是使用 Gitea 配置局域网 git 服务器,再使用 Jenkins 将 Gitea 下的项目部署到...
name:AworkflowformyHelloWorldfileon:pushjobs:build:name:Helloworldactionruns-on:ubuntu-lateststeps:- uses:actions/checkout@v1- uses:./action-awith:MY_NAME:"Mona" 请注意on:属性。 这是一个用于指定此工作流运行时间的触发器。 在此处,它会在有到存储库的推送事件时触发运行。 你可以...
以及如何自定义 JavaScript action: Creating a JavaScript action 还算详细. 不过有一些细节需要注意: action 命名一定是 action.yml 或者是 action.yaml 自定义 action 的文件位置一般放在根目录下, 当然放在 .github 文件夹下也行, 不过在 workflow 的时候还需要 checkout 定位到 repo 上. 而且只有在根目录下的...
JavaScript, 适用 Linux、macOS、Windows 系统 通过执行 JavaScript 处理 Action 逻辑。官方提供了 JavaScript 和 TypeScript 的 Action 模板。在创建项目时,使用模板创建,然后编写处理逻辑,发布自己的 Action 即可。 GitHub Actions 提供了工具包,以支持这种方式的扩展,例如执行命令、操作 GitHub 等,都可以通过引用包,直...
JsAction is a small event delegation library that decouples event binding from the code that can handle the event. Resources Readme License Apache-2.0 license Code of conduct Code of conduct Security policy Security policy Activity Custom properties ...