Parcourir la source

ci: check out exact tag during tagged commit builds

Thomas Waldmann il y a 2 jours
Parent
commit
47fef3da44
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8 0
      .github/workflows/ci.yml

+ 8 - 0
.github/workflows/ci.yml

@@ -92,6 +92,14 @@ jobs:
         echo "Found tag: ${tag}"
         echo "tagged=$tag" >> "$GITHUB_OUTPUT"
 
+    - name: Check out exact tag
+      if: ${{ steps.detect_tag.outputs.tagged }}
+      uses: actions/checkout@v4
+      with:
+        ref: ${{ steps.detect_tag.outputs.tagged }}
+        fetch-depth: 0
+        fetch-tags: true
+
     - name: Set up Python ${{ matrix.python-version }}
       uses: actions/setup-python@v5
       with: