Skip to content

Commit 62c9f53

Browse files
committed
Create 5ht2c/concoction tap
0 parents  commit 62c9f53

3 files changed

Lines changed: 122 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: brew pr-pull
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- labeled
7+
8+
jobs:
9+
pr-pull:
10+
if: contains(github.event.pull_request.labels.*.name, 'bump: pull')
11+
runs-on: ubuntu-22.04
12+
permissions:
13+
actions: read
14+
checks: read
15+
contents: write
16+
issues: read
17+
packages: write
18+
pull-requests: write
19+
steps:
20+
- name: Set up Homebrew
21+
uses: Homebrew/actions/setup-homebrew@main
22+
with:
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
25+
- name: Set up git
26+
uses: Homebrew/actions/git-user-config@main
27+
28+
- name: Pull bottles
29+
env:
30+
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
HOMEBREW_GITHUB_PACKAGES_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
HOMEBREW_GITHUB_PACKAGES_USER: ${{ github.repository_owner }}
33+
PULL_REQUEST: ${{ github.event.pull_request.number }}
34+
run: brew pr-pull --debug --tap="$GITHUB_REPOSITORY" "$PULL_REQUEST"
35+
36+
- name: Push commits
37+
uses: Homebrew/actions/git-try-push@main
38+
with:
39+
branch: trunk
40+
41+
- name: Delete branch
42+
if: github.event.pull_request.head.repo.fork == false
43+
env:
44+
BRANCH: ${{ github.event.pull_request.head.ref }}
45+
run: git push --delete origin "$BRANCH"

.github/workflows/tests.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: brew test-bot
2+
3+
on:
4+
push:
5+
branches:
6+
- trunk
7+
pull_request:
8+
9+
jobs:
10+
test-bot:
11+
strategy:
12+
matrix:
13+
os: [ ubuntu-22.04, macos-15-intel, macos-26 ]
14+
runs-on: ${{ matrix.os }}
15+
permissions:
16+
actions: read
17+
checks: read
18+
contents: read
19+
packages: read
20+
pull-requests: read
21+
steps:
22+
- name: Set up Homebrew
23+
id: set-up-homebrew
24+
uses: Homebrew/actions/setup-homebrew@main
25+
with:
26+
token: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: Cache Homebrew Bundler RubyGems
29+
uses: actions/cache@v4
30+
with:
31+
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
32+
key: ${{ matrix.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
33+
restore-keys: ${{ matrix.os }}-rubygems-
34+
35+
- run: brew test-bot --only-cleanup-before
36+
37+
- run: brew test-bot --only-setup
38+
39+
- run: brew test-bot --only-tap-syntax
40+
- name: Base64-encode GITHUB_TOKEN for HOMEBREW_DOCKER_REGISTRY_TOKEN
41+
id: base64-encode
42+
if: github.event_name == 'pull_request'
43+
env:
44+
TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
run: |
46+
base64_token=$(echo -n "${TOKEN}" | base64 | tr -d "\n")
47+
echo "::add-mask::${base64_token}"
48+
echo "token=${base64_token}" >> "${GITHUB_OUTPUT}"
49+
- run: brew test-bot --only-formulae --root-url=https://ghcr.io/v2/5ht2c/concoction
50+
if: github.event_name == 'pull_request'
51+
env:
52+
HOMEBREW_DOCKER_REGISTRY_TOKEN: ${{ steps.base64-encode.outputs.token }}
53+
54+
- name: Upload bottles as artifact
55+
if: always() && github.event_name == 'pull_request'
56+
uses: actions/upload-artifact@v4
57+
with:
58+
name: bottles_${{ matrix.os }}
59+
path: '*.bottle.*'

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# 5HT2C Concoction
2+
3+
## How do I install these formulae?
4+
5+
`brew install 5ht2c/concoction/<formula>`
6+
7+
Or `brew tap 5ht2c/concoction` and then `brew install <formula>`.
8+
9+
Or, in a `brew bundle` `Brewfile`:
10+
11+
```ruby
12+
tap "5ht2c/concoction"
13+
brew "<formula>"
14+
```
15+
16+
## Documentation
17+
18+
`brew help`, `man brew` or check [Homebrew's documentation](https://docs.brew.sh).

0 commit comments

Comments
 (0)