mirror of
				https://github.com/LamGC/ScalaBot.git
				synced 2025-11-04 10:36:54 +00:00 
			
		
		
		
	build(action): 修复 gradlew 无权限的问题.
由于 gradlew 并未自动获得执行权限, 所以 Action 执行 gradlew 时会失败, 已在执行前设置执行权限, 希望管用.
This commit is contained in:
		
							
								
								
									
										2
									
								
								.github/workflows/build-and-test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/build-and-test.yml
									
									
									
									
										vendored
									
									
								
							@ -25,6 +25,8 @@ jobs:
 | 
				
			|||||||
        java-version: '11'
 | 
					        java-version: '11'
 | 
				
			||||||
        distribution: 'adopt-hotspot'
 | 
					        distribution: 'adopt-hotspot'
 | 
				
			||||||
        cache: 'gradle'
 | 
					        cache: 'gradle'
 | 
				
			||||||
 | 
					    - name: Grant execute permission for gradlew
 | 
				
			||||||
 | 
					      run: chmod +x gradlew
 | 
				
			||||||
    - name: Build and test
 | 
					    - name: Build and test
 | 
				
			||||||
      uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
 | 
					      uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user