Skip to content

Commit

Permalink
ci: add homebrew github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Jan 22, 2024
1 parent 4affd8a commit da7ba03
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/homebrew.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Update Homebrew Formula

on:
push:
branches:
- master
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
update-formula:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v3

- name: Update Homebrew Formula
run: sed -i '' 's/:tag => "[^"]*"/:tag => "${{ github.ref_name }}"/' ./Formula/renterd.rb

- name: Create Pull Request
uses: peter-evans/[email protected]
with:
token: ${{ secrets.HOMEBREW_CREATE_PR }}
commit-message: Update renterd formula to ${{ github.ref_name }}"
title: 'Update renterd formula to ${{ github.ref_name }}'
body: 'This is an automated PR to update the formula'
branch: bot/update-renterd
base: master

0 comments on commit da7ba03

Please sign in to comment.