Skip to content

migrate off of dawidd6/action-homebrew-bump-formula #17

migrate off of dawidd6/action-homebrew-bump-formula

migrate off of dawidd6/action-homebrew-bump-formula #17

Workflow file for this run

name: publish
on:
push:
tags:
- "v*"
jobs:
main:
runs-on: macos-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Install 1Password CLI
uses: 1password/install-cli-action@v1
- name: Update Homebrew formula
run: |
brew tap bartekpacia/tools
op run -- brew bump-formula-pr \
--message "bump version to $(git describe --tags)" \
--no-browse \
--strict \
--online \
--tag "$(git describe --tags)" \
--revision "$(git rev-parse HEAD)" \
scripts
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
HOMEBREW_GITHUB_API_TOKEN: op://Developer/GitHub/PAT
- name: Create release on GitHub
uses: softprops/action-gh-release@v1
with:
name: ${{ github.ref_name }}