We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 383035f commit 2557a3aCopy full SHA for 2557a3a
.github/workflows/release.yml
@@ -29,8 +29,12 @@ jobs:
29
30
- name: Publish to PyPI
31
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)
+ # Get the previous tag
+ 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)
38
39
if [ -n "$changed_targets" ]; then
40
echo "Publishing changed targets: $changed_targets"
0 commit comments