def should_deploy():
    if (not (os.getenv('TRAVIS_BRANCH', None) == 'master')):
        print('Skipping deploy for not master branch')
        return False
    if (os.getenv('TRAVIS_PULL_REQUEST', '') != 'false'):
        print('Deploy skipped, This is a PR in the main repository')
        return False
    if (not os.getenv('GITHUB_API_KEY')):
        print('Deploy skipped, missing GITHUB_API_KEY. Is this a PR?')
        return False
    return True
def should_deploy():
    if (not (os.getenv('TRAVIS_BRANCH', None) == 'master')):
        print('Skipping deploy for not master branch')
        return False
    if (os.getenv('TRAVIS_PULL_REQUEST', ) != 'false'):
        print('Deploy skipped, This is a PR in the main repository')
        return False
    if (not os.getenv('GITHUB_API_KEY')):
        print('Deploy skipped, missing GITHUB_API_KEY. Is this a PR?')
        return False
    return True