解读 GitHub Actions 工作流
下面的 GitHub Actions 工作流会在运行器的 shell 中使用命令行计算器 bc 打印数学常数圆周率的值。
name: Print Pi Workflow
on:
push:
branches: [ "master" ]
jobs:
print-pi-job:
runs-on: macos-latest
steps:
- name: Print Pi Step
run: |
echo pi=`echo "4*a(1)" | bc -l`
本练习是课程的一部分
