mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-04 14:14:11 +00:00 
			
		
		
		
	ci: Check version tags are always annotated
Closes https://github.com/espressif/esp-idf/issues/3114
This commit is contained in:
		@@ -215,3 +215,15 @@ check_codeowners:
 | 
			
		||||
  extends: .check_job_template
 | 
			
		||||
  script:
 | 
			
		||||
    - tools/codeowners.py ci-check
 | 
			
		||||
 | 
			
		||||
# For release tag pipelines only, make sure the tag was created with 'git tag -a' so it will update
 | 
			
		||||
# the version returned by 'git describe'
 | 
			
		||||
check_version_tag:
 | 
			
		||||
  extends: .check_job_template
 | 
			
		||||
  only:
 | 
			
		||||
    refs:
 | 
			
		||||
      - /^v\d+\.\d+(\.\d+)?($|-)/
 | 
			
		||||
    variables:
 | 
			
		||||
      - $BOT_TRIGGER_WITH_LABEL == null
 | 
			
		||||
  script:
 | 
			
		||||
    - (git cat-file -t $CI_COMMIT_REF_NAME | grep tag) || echo "ESP-IDF versions must be annotated tags." && exit 1
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user