on:pull_request:types:-ready_for_reviewjobs:track_pr:runs-on:ubuntu-lateststeps: This workflow runs whenever a pull request in the repository is marked as "ready for review". -name:Generatetokenid:generate-tokenuses:actions/create-github-app-token@v1with:a...
github actions中最少获取pull request的名称、地址、提交者。 很遗憾github actions提供的默认环境变量中并没有给出友好的pull reqeuest信息,唯一能够找到一些pull reqeuest信息的环境变量为$GITHUB_REF,形式为refs/pull/:prNumber/merge。 即使我们可以通过$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ;...
uses: actions/upload-artifact@master if: always() with: name: xupdate_apk path: ${{ github.workspace }}/app/build/outputs/apk/release 详细配置可以参考我的XUpdate中的配置。 这里我们可以看到,我们定义的触发条件是release,push和pull_request,触发的分支是master,tags是2.*开头的。 整个任务主要分为4...
在项目中新建文件.github/workflows/check-pull-request.yml,内容如下: name:test check pull requestrun-name:'check pull request #${{ github.event.pull_request.number }}'on:pull_request:types:[opened, synchronize, reopened]jobs:replyChecking:runs-on:ubuntu-lateststeps: -run:echo 'replyChecking'ini...
actions: "create-comment" issue-number: ${{ github.event.issue.number }} body: | 你好@${{ github.event.issue.user.login }},我们完全同意你的提议/反馈,欢迎直接在此仓库 [创建一个 Pull Request](https://github.com/NI-Web-Infra-Team/vue3-template/pulls) 来解决这个问题。请将 Pull Request...
name:AndroidCIon:release:types:[published]push:branches:-mastertags:-'2.*'pull_request:branches:-masterjobs:build:runs-on:ubuntu-lateststeps:-uses:actions/checkout@v2-name:setupJDK1.8uses:actions/setup-java@v1with:java-version:1.8-name:release apk signrun:|echo"给apk增加签名"cp $GITHUB_WORKSP...
on:# Trigger the workflow on push or pull request,# but only for the main branchpush:branches:-mainpull_request:branches:-main# Also trigger on page_build, as well as release created eventspage_build:release:types:# This configuration does not affect the page_build event a...
on:# Trigger the workflow on push or pull request,# but only for the main branchpush:branches:-mainpull_request:branches:-main# Also trigger on page_build, as well as release created eventspage_build:release:types:# This configuration does not affect the page_build event above-...
name:My GitHub Actions 1. on on字段指定触发 workflow 的条件,通常是某些事件。上面代码指定,push事件触发 workflow。 on字段也可以是事件的数组。 # push时触发 workflowon:push# 也可以是一系列触发的数组,push 或 pull_request时触发on:[push,pull_request]# main分支push时触发on:push:branches:-main# 点...
pull_request:branches:-master# Also trigger on page_build, as well as release created eventspage_build:release:types:# This configuration does not affect the page_build event above-created 详细文档请参考: 触发事件 jobs jobs可以包含一个或多个job,如: ...