-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4affd8a
commit da7ba03
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |