解讀 GitHub Actions 工作流程
下列 GitHub Actions 工作流程會在 runner 的 shell 中,使用指令列計算機 bc 輸出數學常數 pi 的值。
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`
本練習屬於課程
