小编map*_*i50的帖子

如何在推送时在github页面中执行多行curl命令?

这是我到目前为止的工作流程,github告诉我第8行有错误,但我找不到它。

name: restartServer
on: [push]
jobs:
  check-bats-version:
    runs-on: ubuntu-latest
    steps:
      - run: >
        curl --location --request POST 'https://panel.discordbothosting.com/api/client/servers/fd21d417/power' \
          --header 'Accept: application/json' \
          --header 'Content-Type: application/json' \
          --header 'Authorization: Bearer APIKEY' \
          --data-raw '{
            "signal": "restart"
          }'
Run Code Online (Sandbox Code Playgroud)

yaml github github-actions

4
推荐指数
1
解决办法
2693
查看次数

标签 统计

github ×1

github-actions ×1

yaml ×1