Github env var are empty

Hi!

I want to use the plugin bitrise-step-comment-on-github-pull-request/step.yml at master · kvvzr/bitrise-step-comment-on-github-pull-request · GitHub to put a comment in the PR

But all the env related to the PR are empty

echo “$BITRISEIO_PULL_REQUEST_REPOSITORY_URL”
echo “$BITRISE_PULL_REQUEST”

I tried by setting the trigger_map

trigger_map:

  • pattern: “*”
    is_pull_request_allowed: true
    workflow: deploy-dev-android

Are those environment variables available when the build is triggered manually?

Those will only be set when the build is triggered by a Pull Request via webhook or via the API with those values set.

1 Like