Skip to content

Commit

Permalink
Auto bump homebrew formula (#3565)
Browse files Browse the repository at this point in the history
* add auto bump formula action

* add on push trigger
  • Loading branch information
yourmoonlight authored Jul 26, 2022
1 parent 45bc82a commit 8afd861
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/auto_bump_homebrew.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
push:
tags: 'v*'
workflow_dispatch:
inputs:
tag-name:
description: 'The git tag name to bump the formula to'
required: true

jobs:
homebrew:
name: Bump Homebrew formula
runs-on: ubuntu-latest
steps:
- name: Extract version
id: extract-version
run: |
printf "::set-output name=%s::%s\n" tag-name "${GITHUB_REF#refs/tags/}"
- uses: mislav/bump-homebrew-formula-action@v2
if: "!contains(github.ref, '-')" # skip prereleases
with:
formula-name: starcoin
formula-path: Formula/starcoin.rb
homebrew-tap: starcoinorg/homebrew-starcoin
base-branch: master
download-url: https://github.com/starcoinorg/starcoin/releases/download/${{ steps.extract-version.outputs.tag-name }}/starcoin-macos-latest.zip
commit-message: |
{{formulaName}} {{version}}
Created by https://github.com/mislav/bump-homebrew-formula-action
env:
# COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
GITHUB_TOKEN: ${{ secrets.BUMP_FORMULA_TOKEN }}

0 comments on commit 8afd861

Please sign in to comment.