/.github/workflows: separate homebrew from release

This commit is contained in:
Dustin Brown
2021-04-02 17:22:10 -07:00
parent 4cf160d786
commit 5c9a3abffe
2 changed files with 52 additions and 14 deletions
+5 -14
View File
@@ -92,23 +92,14 @@ jobs:
homebrew-bump:
needs: create-release
name: Bump Dolt Homebrew formula
runs-on: ubuntu-18.04
steps:
- name: Create Homebrew PR
uses: mislav/bump-homebrew-formula-action@v1
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
formula-name: dolt
homebrew-tap: Homebrew/homebrew-core
base-branch: main
tag-name: ${{format('refs/tags/v{0}', github.event.inputs.version)}}
download-url: ${{format('https://github.com/dolthub/dolt/archive/v{0}.tar.gz', github.event.inputs.version)}}
commit-message: |
${{format('dolt {0}', github.event.inputs.version)}}
Created by https://github.com/mislav/bump-homebrew-formula-action
env:
COMMITTER_TOKEN: ${{secrets.HOMEBREW_GITHUB_TOKEN}}
token: ${{ secrets.REPO_ACCESS_TOKEN }}
event-type: bump-homebrew
client-payload: '{"version": "${{ github.event.inputs.version }}"}'
trigger-performance-benchmark-email:
needs: create-release
+47
View File
@@ -0,0 +1,47 @@
name: Bump Dolt on Homebrew
on:
workflow_dispatch:
inputs:
version:
description: 'SemVer format release tag, i.e. 0.24.5'
required: true
repository_dispatch:
types: [ bump-homebrew ]
jobs:
homebrew-bump:
needs: create-release
name: Bump Dolt Homebrew formula
runs-on: ubuntu-18.04
steps:
- name: Create Homebrew PR
uses: mislav/bump-homebrew-formula-action@v1
if: ${{ github.event_name == 'repository_dispatch' }}
with:
formula-name: dolt
homebrew-tap: Homebrew/homebrew-core
base-branch: master
tag-name: ${{format('refs/tags/v{0}', github.event.client_payload.version)}}
download-url: ${{format('https://github.com/dolthub/dolt/archive/v{0}.tar.gz', github.event.client_payload.version)}}
commit-message: |
${{format('dolt {0}', github.event.client_payload.version)}}
Created by https://github.com/mislav/bump-homebrew-formula-action
env:
COMMITTER_TOKEN: ${{secrets.HOMEBREW_GITHUB_TOKEN}}
- name: Create Homebrew PR
uses: mislav/bump-homebrew-formula-action@v1
if: ${{ github.event_name == 'workflow_dispatch' }}
with:
formula-name: dolt
homebrew-tap: Homebrew/homebrew-core
base-branch: main
tag-name: ${{format('refs/tags/v{0}', github.event.inputs.version)}}
download-url: ${{format('https://github.com/dolthub/dolt/archive/v{0}.tar.gz', github.event.inputs.version)}}
commit-message: |
${{format('dolt {0}', github.event.inputs.version)}}
Created by https://github.com/mislav/bump-homebrew-formula-action
env:
COMMITTER_TOKEN: ${{secrets.HOMEBREW_GITHUB_TOKEN}}