Skip to content

Commit

Permalink
feat: add workflow to bump homebrew formula to github
Browse files Browse the repository at this point in the history
Signed-off-by: amands98 <amandeepsm.in@gmail.com>
  • Loading branch information
amands98 committed Mar 20, 2024
1 parent aab05ad commit 1c8c433
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/publish_release.yml
Expand Up @@ -24,3 +24,15 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Extract version
id: extract-version
run: |
echo "tag-name=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: bump homebrew-core formula
uses: mislav/bump-homebrew-formula-action@v3
with:
formula-name: harbor
formula-path: Formula/harbor.rb
download-url: https://github.com/goharbor/harbor-cli/archive/${{ steps.extract-version.outputs.tag-name }}.tar.gz
env:
COMMITTER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1c8c433

Please sign in to comment.