woodpecker-ci / woodpecker

Woodpecker is a simple, yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
4.16k stars 360 forks source link

variable CI_PIPELINE_DEPLOY_TASK is empty in woodpecker #3872

Closed lara-clink closed 2 months ago

lara-clink commented 3 months ago

Component

other

Describe the bug

I am testing version 2.6 in my development environment, so I updated an application code to use - evaluate: CI_PIPELINE_DEPLOY_TASK == "sre-dummy-rest-app" instead of the 'task:' filter. In my github hooks payload I get: Captura de Tela 2024-07-04 às 14 21 31 But the CI_PIPELINE_DEPLOY_TASK is empty and woodpecker is not running the steps that it should run.

Steps to reproduce

Using :

when:
      - evaluate: CI_PIPELINE_DEPLOY_TASK == "value" 

Instead of: task: "value"

Expected behavior

Run with the variable as it should run with the filter in previous versions.

System Info

{"source":"https://github.com/woodpecker-ci/woodpecker","version":"2.6.0"}

Additional context

No response

Validations

zc-devs commented 3 months ago

it should run with the filter in previous versions

Has it ever been?

Constraints doesn't contain task filter and seems has never been.