mirror of
				https://github.com/JetBrains/intellij-platform-plugin-template.git
				synced 2025-06-13 13:04:09 +00:00 
			
		
		
		
	GitHub Actions - run Export Properties in bash shell
This commit is contained in:
		
							parent
							
								
									a2bee72ebe
								
							
						
					
					
						commit
						a09031a9d5
					
				
							
								
								
									
										8
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							| @ -92,11 +92,12 @@ jobs: | ||||
|       # Set environment variables | ||||
|       - name: Export Properties | ||||
|         id: properties | ||||
|         shell: bash | ||||
|         run: | | ||||
|           PROPERTIES="$(./gradlew properties --console=plain -q)" | ||||
|           VERSION="$(echo $PROPERTIES | grep "^version:" | cut -f2- -d ' ')" | ||||
|           NAME="$(echo $PROPERTIES | grep "^name:" | cut -f2- -d ' ')" | ||||
|           CHANGELOG=$(./gradlew getChangelog --unreleased --no-header --console=plain -q) | ||||
|           VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')" | ||||
|           NAME="$(echo "$PROPERTIES" | grep "^name:" | cut -f2- -d ' ')" | ||||
|           CHANGELOG="$(./gradlew getChangelog --unreleased --no-header --console=plain -q)" | ||||
|           CHANGELOG="${CHANGELOG//'%'/'%25'}" | ||||
|           CHANGELOG="${CHANGELOG//$'\n'/'%0A'}" | ||||
|           CHANGELOG="${CHANGELOG//$'\r'/'%0D'}" | ||||
| @ -156,7 +157,6 @@ jobs: | ||||
|   # If accepted and published, release workflow would be triggered | ||||
|   releaseDraft: | ||||
|     name: Release Draft | ||||
|     if: github.ref == 'refs/heads/master' | ||||
|     needs: [build, verify] | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user