每一步都必须定义一个 `uses` 或 `运行` 关键 GH 动作

Every step must define a `uses` or `run` key GH actions

我正在尝试为 github 操作设置 yaml 文件。但是我不确定我做错了什么,我为每一步都添加了 uses 和 运行 但它仍然会抛出错误。

我收到以下错误:

every step must define a `uses` or `run` key
on:
  pull_request:
    branches:
      - master

jobs:
  ios:
    runs-on: macos-latest
    steps: 
      - name: Checkout code
        uses: actions/checkout@v2
      - name: Setup java
        uses: actions/setup-java@v1
      - name: Setup Flutter
        uses: subosito/flutter-action@v1
        with:
          flutter-version: '2.8.1'
      - run: flutter pub get
      - run: flutter build apk
      - name: Install pods
      - run: cd ./ios && pod install
      - name: Run fastlane
        uses: maierj/fastlane-action@v1.4.0

你这里有错误:

- name: Install pods
- run: cd ./ios && pod install

应该是:

- name: Install pods
  run: cd ./ios && pod install