Skip to content

Commit 3b2fff9

Browse files
[Internal] Fix relative path for tagging workflow (#4498)
## Changes Fix relative path for tagging workflow ## Tests Run script locally (commenting the API calls) ``` Processing package adding file CHANGELOG.md adding file NEXT_CHANGELOG.md adding file common/version.go adding file .release_metadata.json ``` - [ ] `make test` run locally - [ ] relevant change in `docs/` folder - [ ] covered with integration tests in `internal/acceptance` - [ ] using Go SDK - [ ] using TF Plugin Framework NO_CHANGELOG=true
1 parent 98e25e3 commit 3b2fff9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tagging.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def __init__(self, repo: Repository):
3737

3838
# Replaces "git add file"
3939
def add_file(self, loc: str, content: str):
40-
local_path = os.path.relpath(os.getcwd(), loc)
40+
local_path = os.path.relpath(loc, os.getcwd())
41+
print(f"Adding file {local_path}")
4142
blob = self.repo.create_git_blob(content=content, encoding="utf-8")
4243
element = InputGitTreeElement(path=local_path, mode="100644", type="blob", sha=blob.sha)
4344
self.changed_files.append(element)

0 commit comments

Comments
 (0)