mirror of
				https://github.com/TomWright/dasel.git
				synced 2022-05-22 02:32:45 +03:00 
			
		
		
		
	Separate homebrew bump into a new workflow
This commit is contained in:
		
							
								
								
									
										15
									
								
								.github/workflows/build.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								.github/workflows/build.yaml
									
									
									
									
										vendored
									
									
								
							| @@ -22,42 +22,36 @@ jobs: | ||||
|             asset_name: dasel_linux_amd64 | ||||
|             build_docker: true | ||||
|             test_version: true | ||||
|             bump_homebrew: true | ||||
|           - os: linux | ||||
|             arch: 386 | ||||
|             artifact_name: dasel_linux_386 | ||||
|             asset_name: dasel_linux_386 | ||||
|             build_docker: false | ||||
|             test_version: false | ||||
|             bump_homebrew: false | ||||
|           - os: darwin | ||||
|             arch: amd64 | ||||
|             artifact_name: dasel_darwin_amd64 | ||||
|             asset_name: dasel_darwin_amd64 | ||||
|             build_docker: false | ||||
|             test_version: false | ||||
|             bump_homebrew: false | ||||
|           - os: windows | ||||
|             arch: amd64 | ||||
|             artifact_name: dasel_windows_amd64.exe | ||||
|             asset_name: dasel_windows_amd64.exe | ||||
|             build_docker: false | ||||
|             test_version: false | ||||
|             bump_homebrew: false | ||||
|           - os: windows | ||||
|             arch: 386 | ||||
|             artifact_name: dasel_windows_386.exe | ||||
|             asset_name: dasel_windows_386.exe | ||||
|             build_docker: false | ||||
|             test_version: false | ||||
|             bump_homebrew: false | ||||
|           - os: linux | ||||
|             arch: arm64 | ||||
|             artifact_name: dasel_linux_arm64 | ||||
|             asset_name: dasel_linux_arm64 | ||||
|             build_docker: false | ||||
|             test_version: false | ||||
|             bump_homebrew: false | ||||
|         exclude: | ||||
|             - os: darwin | ||||
|               arch: 386 | ||||
| @@ -123,12 +117,3 @@ jobs: | ||||
|           docker push ghcr.io/tomwright/dasel:${{ env.RELEASE_VERSION }} | ||||
|           docker push ghcr.io/tomwright/dasel:${{ env.RELEASE_VERSION }}-buster-slim | ||||
|           docker push ghcr.io/tomwright/dasel:${{ env.RELEASE_VERSION }}-alpine | ||||
|       - name: Homebrew bump formula | ||||
|         if: matrix.bump_homebrew == true | ||||
|         uses: dawidd6/action-homebrew-bump-formula@v3.7.2 | ||||
|         with: | ||||
|           token: ${{ secrets.GH_HOMEBREW_TOKEN }} | ||||
|           formula: dasel | ||||
|           tap: homebrew/core | ||||
|           tag: ${{ env.RELEASE_VERSION }} | ||||
|           force: true | ||||
|   | ||||
							
								
								
									
										22
									
								
								.github/workflows/bump-homebrew.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								.github/workflows/bump-homebrew.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| on: | ||||
|   workflow_run: | ||||
|     workflows: ["Build"] | ||||
|     types: | ||||
|       - completed | ||||
| name: Bump homebrew | ||||
| jobs: | ||||
|   publish: | ||||
|     name: Update homebrew-core | ||||
|     runs-on: macos-latest | ||||
|     steps: | ||||
|       - uses: actions/checkout@v2 | ||||
|       - name: Set env | ||||
|         run: echo RELEASE_VERSION=${GITHUB_REF:10} >> $GITHUB_ENV | ||||
|       - name: Homebrew bump formula | ||||
|         uses: dawidd6/action-homebrew-bump-formula@v3.8.0 | ||||
|         with: | ||||
|           token: ${{ secrets.GH_HOMEBREW_TOKEN }} | ||||
|           formula: dasel | ||||
|           tap: homebrew/core | ||||
|           tag: ${{ env.RELEASE_VERSION }} | ||||
|           force: true | ||||
		Reference in New Issue
	
	Block a user
	 Tom Wright
					Tom Wright