diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 4e00f4d..0106802 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -7,12 +7,12 @@ pipelines: name: "Tag dev" script: - cd $BITBUCKET_CLONE_DIR - - pip install -r requirements.txt - - ./git-flow tag $BEARER + - pip install . + - ./src/git_flow/main.py tag $BEARER 'main': - step: name: "Tag main" script: - cd $BITBUCKET_CLONE_DIR - - pip install -r requirements.txt - - ./git-flow tag $BEARER + - pip install . + - ./src/git_flow/main.py tag $BEARER diff --git a/src/git_flow/main.py b/src/git_flow/main.py index 6d31afa..5283a27 100755 --- a/src/git_flow/main.py +++ b/src/git_flow/main.py @@ -661,3 +661,6 @@ def get_api_endpoint(service: str, repository: str, path: str): return "https://api.bitbucket.org/2.0/repositories/" + repository + path return "" + +if __name__ == "__main__": + main()