Who can tell me what's wrong with my code?
I want to use Github actions to install the flarum plug-in.
Using Github's yaml syntax, the error "Invalid workflow file: .github/workflows/test.yml#L37
The workflow is not valid. .github/workflows/test.yml (Line: 37, Col: 16): Unexpected symbol: '源压缩包(zip)'. Located at position 8 within expression: inputs.源压缩包(zip) .github/workflows/test.yml (Line: 43, Col: 17): Unexpected symbol: '执行的命令①'. Located at position 8 within expression: inputs.执行的命令①'
This is the source code
name: composer on Github(bbs部署/从仓库获取)
on:
workflow_dispatch:
inputs:
源压缩包(zip):
description: '含有vendor目录和composer.json,composer.lock的文件'
required: true
default: 'composer.zip'
执行的命令①:
description: '执行的命令①(不含“composer”)'
required: true
default: 'install'
执行的命令②:
description: '执行的命令②(不含“composer”)'
执行的命令③:
description: '执行的命令③(不含“composer”)'
执行的命令④:
description: '执行的命令④(不含“composer”)'
执行的命令⑤:
description: '执行的命令⑤(不含“composer”)'
jobs:
bbs:
runs-on: ubuntu-latest
steps:
- name: 复制仓库文件
uses: actions/checkout@v3
- name: 列出copy后文件
run: |
ls ${{ github.workspace }}
- name: 解压zip
uses: montudor/action-zip@v1
with:
args: unzip -qq $zip -d dir
env:
zip: ${{ inputs.源压缩包(zip)}}
- name: 执行命令1
uses: MilesChou/composer-action@master
with:
args: $cmd1
env:
cmd1: ${{ inputs.执行的命令① }}
- name: 执行命令2
uses: MilesChou/composer-action@master
with:
args: $cmd2
env:
cmd2: ${{ inputs.执行的命令② }}
- name: 执行命令3
uses: MilesChou/composer-action@master
with:
args: $cmd3
env:
cmd3: ${{ inputs.执行的命令③ }}
- name: 执行命令4
uses: MilesChou/composer-action@master
with:
args: $cmd4
env:
cmd4: ${{ inputs.执行的命令④ }}
- name: 执行命令5
uses: MilesChou/composer-action@master
with:
args: $cmd5
env:
cmd5: ${{ inputs.执行的命令⑤ }}