Skip to content

Commit a265ca3

Browse files
rev: ci, manage pyproject.toml at runtime replacing current dependency instead duplicate with new branch
1 parent 2295c8d commit a265ca3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/python-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
echo "Checking if branch '$CURRENT_BRANCH' exists in eudi-wallet-it-python..."
5353
if git ls-remote --heads https://github.com/italia/eudi-wallet-it-python.git $CURRENT_BRANCH | grep -q $CURRENT_BRANCH; then
5454
echo "Branch found! Patching pyproject.toml..."
55-
sed -i 's|git = "https://github.com/italia/eudi-wallet-it-python"|git = "https://github.com/italia/eudi-wallet-it-python.git", rev = "'"$CURRENT_BRANCH"'"|' pyproject.toml
55+
sed -i 's|git+https://github.com/italia/eudi-wallet-it-python|git+https://github.com/italia/eudi-wallet-it-python.git@'"$CURRENT_BRANCH"'|' pyproject.toml
5656
else
5757
echo "No matching branch found. Using default pyproject.toml."
5858
fi

0 commit comments

Comments
 (0)