Skip to content

Commit 50aaf63

Browse files
authored
Fix misc issues in the release script (delta-io#90)
- Set `GPG_TTY` so that it works for environments not set it. - Use `--allow-empty` to commit the changes to update Python Connector version so that we can re-run this script even if the Python connector version has been updated.
1 parent b41f9e5 commit 50aaf63

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dev/release.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash -e -pipe
22

3+
export GPG_TTY=$(tty)
4+
35
# Switch to the project root directory
46
cd $( dirname $0 )
57
cd ..
@@ -21,7 +23,8 @@ echo $VERSION
2123
# Update the Python connector version
2224
sed -i '' "s/__version__ = \".*\"/__version__ = \"$VERSION\"/g" python/delta_sharing/version.py
2325
git add python/delta_sharing/version.py
24-
git commit -m "Update Python connector version to $VERSION"
26+
# Use --allow-empty so that we can re-run this script even if the Python connector version has been updated
27+
git commit -m "Update Python connector version to $VERSION" --allow-empty
2528

2629
build/sbt "release skip-tests"
2730

0 commit comments

Comments
 (0)