-
-
Notifications
You must be signed in to change notification settings - Fork 540
46 lines (42 loc) · 1.72 KB
/
cd-bump-homebrew.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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:
name: Bump Dolt Homebrew formula
runs-on: ubuntu-22.04
steps:
- name: Create Homebrew PR
uses: mislav/[email protected]
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.REPO_ACCESS_TOKEN}}
- name: Create Homebrew PR
uses: mislav/[email protected]
if: ${{ github.event_name == 'workflow_dispatch' }}
with:
formula-name: dolt
homebrew-tap: Homebrew/homebrew-core
base-branch: master
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.REPO_ACCESS_TOKEN}}