Skip to content

Commit 2557a3a

Browse files
committed
linting
1 parent 383035f commit 2557a3a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,12 @@ jobs:
2929

3030
- name: Publish to PyPI
3131
run: |
32-
# Get list of changed targets that are publishable
33-
changed_targets=$(pants --changed-since=origin/main list | awk -F/ '{print $1}' | sort -u)
32+
# Get the previous tag
33+
previous_tag=$(git describe --tags --abbrev=0 HEAD^)
34+
echo "Comparing changes since $previous_tag"
35+
36+
# Get list of changed targets since the previous tag
37+
changed_targets=$(pants --changed-since=$previous_tag list | awk -F/ '{print $1}' | sort -u)
3438
3539
if [ -n "$changed_targets" ]; then
3640
echo "Publishing changed targets: $changed_targets"

0 commit comments

Comments
 (0)