-name:Checkoutuses:actions/checkout@v4with:ref:${{github.head_ref}}-name:Get date timeid:getDateTimerun:echo "result=$(TZ=Asia/Shanghai date)" >> "$GITHUB_OUTPUT"-name:Create or update a commentuses:./.github/actions/unique-commentwith:uniqueIdentifier:${{ github.workflow }}body:|**Ch...
git下载、github访问:https://www.midorg.com/vsc.html练习仓库:https://github.com/midorg-com/re01【十分钟学会编程的本质】BV1AF411s78P【十分钟学会写网页】BV1hY411j7UM【编程环境的配置】BV1k34y1Y7xk【编程语言的结构】BV1aY411A7oL【一节课学会编程】BV1iY4y157WD
pull_request:jobs: spring-boot: runs-on: ubuntu-latest timeout-minutes: 10 steps: - name: checkout uses: actions/checkout@v2# 此处省略具体的业务代码# 获取PR信息并将其添加到环境变量- name:setPR_INFO run: |echoPR_NUMBER=$(echo$GITHUB_REF| awk'BEGIN { FS = "/" } ; { print $3 }...
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 ab...
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 ab...
on: [push, pull_request] 上面代码指定,push事件或pull_request事件都可以触发 workflow。 除了代码库事件,GitHub Actions 也支持外部事件触发,或者定时运行。 on.<push|pull_request>.<tags|branches> 指定触发事件时,可以限定分支或标签。 on: push:
换句话讲,GitHub Actions不仅允许开发人员在平台上托管代码,还可以操作它。通过GitHub Actions,我们...
# This is a basic workflow to help you get started with Actionsname:CI# Controls when the workflow will runon:# Triggers the workflow on push or pull request events but only for the "master" branchpush:branches:["master"]env:GIT_USER:xxxxGIT_EMAIL:xxxx@qq.comTHEME_REPO:xxxx/hexo-theme...
首先先看一下做为actions脚本的yml文件 1#This is a basic workflow to help you get started with Actions23name: CI45#Controls when the action will run. Triggers the workflow on push or pull request6#events but only for the dev branch7on:8push:9branches: [ dev ]10pull_request:11branches...
接下来让我们看看应用要如何接入 Github Actions 以create-ssr-app 为例 创建配置文件 $ mkdir -p .github/workflows $ touch .github/workflows/CI.yaml 监听Git 命令 在push 代码 以及 合并 PR 的时候触发 CI 工作 name: CI # Controls when the action will run. Triggers the workflow on push or pull...