Do not update Homebrew tap when publishing 3.2.x releases
Closes gh-40921
This commit is contained in:
		
							parent
							
								
									d80cf05406
								
							
						
					
					
						commit
						4bb9197a14
					
				|  | @ -1,32 +0,0 @@ | ||||||
| name: Update Homebrew Tap |  | ||||||
| description: Updates the Homebrew Tap for the Spring Boot CLI |  | ||||||
| inputs: |  | ||||||
|   spring-boot-version: |  | ||||||
|     description: 'The version to publish' |  | ||||||
|     required: true |  | ||||||
|   token: |  | ||||||
|     description: 'Token to use for GitHub authentication' |  | ||||||
|     required: true |  | ||||||
| runs: |  | ||||||
|   using: composite |  | ||||||
|   steps: |  | ||||||
|     - name: Check Out Homebrew Tap Repo |  | ||||||
|       uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 |  | ||||||
|       with: |  | ||||||
|         path: updated-homebrew-tap-repo |  | ||||||
|         repository: spring-io/homebrew-tap |  | ||||||
|         token: ${{ inputs.token }} |  | ||||||
|     - name: Update Homebrew Tap |  | ||||||
|       shell: bash |  | ||||||
|       run: | |  | ||||||
|         pushd updated-homebrew-tap-repo > /dev/null |  | ||||||
|         curl https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-cli/${{ inputs.spring-boot-version }}/spring-boot-cli-${{ inputs.spring-boot-version }}-homebrew.rb --output spring-boot-cli-${{ inputs.spring-boot-version }}-homebrew.rb |  | ||||||
|         rm spring-boot.rb |  | ||||||
|         mv spring-boot-cli-*.rb spring-boot.rb |  | ||||||
|         git config user.name "Spring Builds" > /dev/null |  | ||||||
|         git config user.email "spring-builds@users.noreply.github.com" > /dev/null |  | ||||||
|         git add spring-boot.rb > /dev/null |  | ||||||
|         git commit -m "Upgrade to Spring Boot ${{ inputs.spring-boot-version }}" > /dev/null |  | ||||||
|         git push |  | ||||||
|         echo "DONE" |  | ||||||
|         popd > /dev/null |  | ||||||
|  | @ -108,20 +108,6 @@ jobs: | ||||||
|           sdkman-consumer-key: ${{ secrets.SDKMAN_CONSUMER_KEY }} |           sdkman-consumer-key: ${{ secrets.SDKMAN_CONSUMER_KEY }} | ||||||
|           sdkman-consumer-token: ${{ secrets.SDKMAN_CONSUMER_TOKEN }} |           sdkman-consumer-token: ${{ secrets.SDKMAN_CONSUMER_TOKEN }} | ||||||
|           spring-boot-version: ${{ needs.build-and-stage-release.outputs.version }} |           spring-boot-version: ${{ needs.build-and-stage-release.outputs.version }} | ||||||
|   update-homebrew-tap: |  | ||||||
|     name: Update Homebrew Tap |  | ||||||
|     needs: |  | ||||||
|       - build-and-stage-release |  | ||||||
|       - sync-to-maven-central |  | ||||||
|     runs-on: ubuntu-latest |  | ||||||
|     steps: |  | ||||||
|       - name: Check Out Code |  | ||||||
|         uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 |  | ||||||
|       - name: Update Homebrew Tap |  | ||||||
|         uses: ./.github/actions/update-homebrew-tap |  | ||||||
|         with: |  | ||||||
|           spring-boot-version: ${{ needs.build-and-stage-release.outputs.version }} |  | ||||||
|           token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} |  | ||||||
|   create-github-release: |   create-github-release: | ||||||
|     name: Create GitHub Release |     name: Create GitHub Release | ||||||
|     needs: |     needs: | ||||||
|  | @ -129,7 +115,6 @@ jobs: | ||||||
|       - promote-release |       - promote-release | ||||||
|       - publish-gradle-plugin |       - publish-gradle-plugin | ||||||
|       - publish-to-sdkman |       - publish-to-sdkman | ||||||
|       - update-homebrew-tap |  | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|     steps: |     steps: | ||||||
|       - name: Check Out Code |       - name: Check Out Code | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue