未触发无人机 ssh 插件

Drone ssh plugin not triggered

我的 drone.yml 文件很简单:

build:
    image: node
    commands:
        - echo $${BRANCH}
deploy:
    ssh:
        host: my-domain
        user: admin
        port: 22
        commands:
            - touch /home/admin/testdrone

但在输出中似乎 ssh plugin 从未被拉过:

[info] Pulling image plugins/drone-git:latest
$ git init
Initialized empty Git repository in /drone/src/github.com/.../.git/
$ git remote add origin https://github.com/....git
$ git fetch --no-tags --depth=50 origin +refs/pull/782/merge:
From https://github.com/...
* branch            refs/pull/782/merge -> FETCH_HEAD
$ git checkout -qf FETCH_HEAD
$ echo drone-deploy
drone-deploy

我如何调查问题所在?

事实证明,仅当挂钩 不是 拉取请求时才会执行部署步骤。那就是我的设置出了问题