所以我只是想學習如何使用 github 作業流操作并進行了這個簡單的入門測驗:
name: Basic test push
on:
push:
branches:
- 'autoupdate'
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo Test One Worked!
但是,我收到一個錯誤:
Invalid workflow file
You have an error in your yaml syntax on line 10'
有誰知道為什么?
uj5u.com熱心網友回復:
您正在縮進steps,但它應該與 處于同一級別runs-on:
name: Basic test push
on:
push:
branches:
- 'autoupdate'
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: echo Test One Worked!
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/456836.html
