[RELEASE] do not limit clone depth when building a release
otherwise git describe may not produce a tag based version number
This commit is contained in:
		
					parent
					
						
							
								102b3738a2
							
						
					
				
			
			
				commit
				
					
						aef5f44169
					
				
			
		
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -28,6 +28,8 @@ jobs:
 | 
				
			||||||
    if: vars.ROLE == 'forgejo-integration' || github.repository_owner == 'root'
 | 
					    if: vars.ROLE == 'forgejo-integration' || github.repository_owner == 'root'
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v3
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          fetch-depth: 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Sanitize the name of the repository
 | 
					      - name: Sanitize the name of the repository
 | 
				
			||||||
        id: repository
 | 
					        id: repository
 | 
				
			||||||
| 
						 | 
					@ -64,6 +66,7 @@ jobs:
 | 
				
			||||||
            exit 1
 | 
					            exit 1
 | 
				
			||||||
          fi
 | 
					          fi
 | 
				
			||||||
          version=${version#v}
 | 
					          version=${version#v}
 | 
				
			||||||
 | 
					          git describe --tags --always
 | 
				
			||||||
          echo "sha=${{ github.sha }}" >> "$GITHUB_OUTPUT"
 | 
					          echo "sha=${{ github.sha }}" >> "$GITHUB_OUTPUT"
 | 
				
			||||||
          echo "version=$version" >> "$GITHUB_OUTPUT"
 | 
					          echo "version=$version" >> "$GITHUB_OUTPUT"
 | 
				
			||||||
          echo "override=$override" >> "$GITHUB_OUTPUT"
 | 
					          echo "override=$override" >> "$GITHUB_OUTPUT"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue