Bugfix regex
This commit is contained in:
		
							
								
								
									
										9
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@ -15,9 +15,9 @@ jobs:
 | 
				
			|||||||
    - name: ''
 | 
					    - name: ''
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        pip install bumpversion
 | 
					        pip install bumpversion
 | 
				
			||||||
        export regex=v([0-9]+.[0-9]+.[0-9]+)
 | 
					        export regex="([0-9]+.[0-9]+.[0-9]+)"
 | 
				
			||||||
        echo ${{ github.ref }} > tag.txt
 | 
					        echo ${{ github.ref }} > tag.txt
 | 
				
			||||||
        VERSION=`grep -Po '${regex}' tag.txt`
 | 
					        VERSION=`grep -Po "${regex}" tag.txt`
 | 
				
			||||||
        bumpversion --new-version ${VERSION}
 | 
					        bumpversion --new-version ${VERSION}
 | 
				
			||||||
    - name: Build
 | 
					    - name: Build
 | 
				
			||||||
      id: build
 | 
					      id: build
 | 
				
			||||||
@ -49,7 +49,10 @@ jobs:
 | 
				
			|||||||
    - name: ''
 | 
					    - name: ''
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        pip install bumpversion
 | 
					        pip install bumpversion
 | 
				
			||||||
        bumpversion --new-version ${SEMVER_NEW_VERSION}
 | 
					        export regex="([0-9]+.[0-9]+.[0-9]+)"
 | 
				
			||||||
 | 
					        echo ${{ github.ref }} > tag.txt
 | 
				
			||||||
 | 
					        VERSION=`grep -Po "${regex}" tag.txt`
 | 
				
			||||||
 | 
					        bumpversion --new-version ${VERSION}
 | 
				
			||||||
    - name: Build
 | 
					    - name: Build
 | 
				
			||||||
      id: build
 | 
					      id: build
 | 
				
			||||||
      uses: josephbmanley/build-godot-action@refactor/build
 | 
					      uses: josephbmanley/build-godot-action@refactor/build
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user