Skip to content

Commit 65806df

Browse files
Add github action to create PR against homebrew-core on release
1 parent 0d0f218 commit 65806df

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
on:
2+
release:
3+
types: [created]
4+
5+
name: Upload additional release assets
6+
jobs:
7+
homebrew-pr:
8+
runs-on: macos-10.15
9+
steps:
10+
- name: Get release tag name
11+
# The GITHUB_REF we get has refs/tags/ in front of the tag name so we
12+
# strip that here
13+
run: echo "::set-env name=RELEASE_TAG::${GITHUB_REF/refs\/tags\/}"
14+
- name: Create homebrew PR
15+
run: |
16+
brew bump-formula-pr --tag "$RELEASE_TAG" --revision "$GITHUB_SHA" cbmc
17+
env:
18+
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.DB_CI_CPROVER_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)