Skip to content

Commit

Permalink
Automate homebrew version updation with new release (#248)
Browse files Browse the repository at this point in the history
* add action for bump-formula homebrew

Signed-off-by: Shivam Purohit <[email protected]>

* Update trigger for stable release

* Update release.yml

* Update release.yml

* Update release.yml

---------

Signed-off-by: Shivam Purohit <[email protected]>
  • Loading branch information
shivam-Purohit authored Aug 14, 2024
1 parent 86377b1 commit 327ffaa
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: release-pipeline
on:
create:
tags:
- '**'

jobs:
homebrew:
name: Bump Homebrew formula
runs-on: ubuntu-latest
steps:
- name: Extract version
id: extract-version
run: |
echo "tag-name=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- uses: mislav/bump-homebrew-formula-action@v3
with:
formula-name: litmusctl
tag-name: ${{ steps.extract-version.outputs.tag-name }}
download-url: https://github.com/litmuschaos/litmusctl/archive/refs/tags/${{ steps.extract-version.outputs.tag-name }}.tar.gz
env:
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}

0 comments on commit 327ffaa

Please sign in to comment.