你可以指定单个事件(如on: push)、事件数组(如on: [push, pull_request])或事件配置映射(用于计划工作流或将工作流的执行限制为特定文件、标记或分支更改)。 映射可能如下所示: yml复制 on:# Trigger the workflow on push or pull request,# but only for the main branchpush:branches:-m...
你可以指定单个事件(如on: push)、事件数组(如on: [push, pull_request])或事件配置映射(用于计划工作流或将工作流的执行限制为特定文件、标记或分支更改)。 映射可能如下所示: yml复制 on:# Trigger the workflow on push or pull request,# but only for the main branchpush:branches:-main...
jobs:build:runs-on:ubuntu-lateststeps:-name:SynctoGiteeuses:wearerequired/git-mirror-action@masterenv:# 在 Settings->SecretsSSH_PRIVATE_KEY:${{secrets.GITEE_PRIVATE_KEY}}with:# GitHub 源仓库地址source-repo:git@github.com:xiaoli/abc.git# Gitee 目标仓库地址destination-repo:git@gitee.com:xiaoli/...
{ secrets.JINKE_GITHUB_TOKEN }} - name: Checkout branch run: | git checkout -b chore-sync git fetch --all git merge origin/latest --squash - name: Sleep 5m uses: juliangruber/sleep-action@v1 with: time: 20m - name: Install dependencies run: yarn - name: Sync Locale site @antv/...
uses: JamesIves/github-pages-deploy-action@v4.3.3 with: branch: static-pages # 部署...
deploy:needs:build runs-on:ubuntu-latest steps:-uses:actions/checkout@v3with:persist-credentials:false-uses:JamesIves/github-pages-deploy-action@v4.3.3with:branch:master folder:dist 部署中128错误,需要在setting->general中修改设置 Error: The deploy step encountered an error: The process ‘/usr/bin...
name:JavaCIwithMaven&Deploy# 在push的时候触发workflowon:push:branches:[master]pull_request:branches:[master]jobs:build:runs-on:ubuntu-lateststeps:-name:'Checkout GitHub Action'uses:actions/checkout@master# 配置好java1.8环境-name:SetupJDK1.8uses:actions/setup-java@v1with:java-version:1.8# maven打...
on:pull_request:# Sequence of patterns matched against refs/headsbranches-ignore:-'mona/octocat'-'releases/**-alpha' Example: Including and excluding branches You cannot usebranchesandbranches-ignoreto filter the same event in a single workflow. If you want to both include and exclude branc...
工作流文件的基本结构包括触发器(on)、作业(jobs)和步骤(steps)。 触发器定义了何时运行工作流,例如,当代码被推送到仓库时。 作业是工作流中的一个执行单元,它可以包含多个步骤。 步骤是作业中的单个任务,比如运行脚本或使用操作(action)。 使用操作(Actions): ...
runs-on: ubuntu-latest 配置任务运行在最新的 Ubuntu Linux 运行器,你看的懂这个。 steps: 将check-bats-version任务下的所有步骤分为一组,嵌套的每一个条目都是一个独立的 action 或者 shell 脚本。 - uses: actions/checkout@v2 uses关键字指定了这个步骤运行actions/checkout动作的 v2 大版本 。这是一个...