Skip to content

Commit 90c2f4c

Browse files
committed
Create jetstack/jetstack tap
0 parents  commit 90c2f4c

File tree

3 files changed

+90
-0
lines changed

3 files changed

+90
-0
lines changed

.github/workflows/publish.yml

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

.github/workflows/tests.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: brew test-bot
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
jobs:
8+
test-bot:
9+
strategy:
10+
matrix:
11+
os: [ubuntu-22.04, macos-12]
12+
runs-on: ${{ matrix.os }}
13+
steps:
14+
- name: Set up Homebrew
15+
id: set-up-homebrew
16+
uses: Homebrew/actions/setup-homebrew@master
17+
18+
- name: Cache Homebrew Bundler RubyGems
19+
id: cache
20+
uses: actions/cache@v1
21+
with:
22+
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
23+
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
24+
restore-keys: ${{ runner.os }}-rubygems-
25+
26+
- name: Install Homebrew Bundler RubyGems
27+
if: steps.cache.outputs.cache-hit != 'true'
28+
run: brew install-bundler-gems
29+
30+
- run: brew test-bot --only-cleanup-before
31+
32+
- run: brew test-bot --only-setup
33+
34+
- run: brew test-bot --only-tap-syntax
35+
36+
- run: brew test-bot --only-formulae
37+
if: github.event_name == 'pull_request'
38+
39+
- name: Upload bottles as artifact
40+
if: always() && github.event_name == 'pull_request'
41+
uses: actions/upload-artifact@main
42+
with:
43+
name: bottles
44+
path: '*.bottle.*'

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Jetstack Jetstack
2+
3+
## How do I install these formulae?
4+
5+
`brew install jetstack/jetstack/<formula>`
6+
7+
Or `brew tap jetstack/jetstack` and then `brew install <formula>`.
8+
9+
## Documentation
10+
11+
`brew help`, `man brew` or check [Homebrew's documentation](https://docs.brew.sh).

0 commit comments

Comments
 (0)