What
(Line: 8, Col: 5): A sequence was not expected
- 原因:
get-info と steps が同レベルにあるため
- 修正内容:
jobs:
get-info:
runs-on: ubuntu-latest
- steps:
- - run: echo "ブランチ名は ${{ github.ref }}、リポジトリ名は ${{ github.repository }} です。"
- - name: checkout repository
- uses: actions/checkout@v4
- - run: echo "リポジトリ ${{ github.repository }} がランナー上にクローンされました。"
- - name: list files
- run: |
- ls ${{ github.workspace }}
+ steps:
+ - run: echo "ブランチ名は ${{ github.ref }}、リポジトリ名は ${{ github.repository }} です。"
+ - name: checkout repository
+ uses: actions/checkout@v4
+ - run: echo "リポジトリ ${{ github.repository }} がランナー上にクローンされました。"
+ - name: list files
+ run: |
+ ls ${{ github.workspace }}
What
(Line: 8, Col: 5): A sequence was not expectedget-infoとstepsが同レベルにあるためjobs: get-info: runs-on: ubuntu-latest - steps: - - run: echo "ブランチ名は ${{ github.ref }}、リポジトリ名は ${{ github.repository }} です。" - - name: checkout repository - uses: actions/checkout@v4 - - run: echo "リポジトリ ${{ github.repository }} がランナー上にクローンされました。" - - name: list files - run: | - ls ${{ github.workspace }} + steps: + - run: echo "ブランチ名は ${{ github.ref }}、リポジトリ名は ${{ github.repository }} です。" + - name: checkout repository + uses: actions/checkout@v4 + - run: echo "リポジトリ ${{ github.repository }} がランナー上にクローンされました。" + - name: list files + run: | + ls ${{ github.workspace }}