Skip to content

Commit 62a4ccd

Browse files
committed
fix changed since command
1 parent 7151f83 commit 62a4ccd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ jobs:
3030
- name: Publish to PyPI
3131
run: |
3232
# Get list of changed targets that are publishable
33-
changed_targets=$(pants --changed-since=origin/main filter :: | grep -v "^$")
33+
changed_targets=$(pants --changed-since=origin/main list | awk -F/ '{print $1}' | sort -u)
3434
3535
if [ -n "$changed_targets" ]; then
3636
echo "Publishing changed targets: $changed_targets"
37-
pants publish $changed_targets
37+
for target in $changed_targets; do
38+
pants publish $target::
39+
done
3840
else
3941
echo "No changes detected, skipping publish"
4042
fi

0 commit comments

Comments
 (0)