開始使用免費開始

解讀 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`

本練習屬於課程

Machine Learning 的 CI/CD

檢視課程

動手互動練習

將理論付諸實踐,立即體驗我們的互動練習

開始練習