2.2.16 #48
Workflow file for this run
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
name: Publish to Homebrew | |
on: | |
workflow_dispatch: | |
release: | |
types: [published] | |
jobs: | |
release: | |
if: github.repository_owner == 'go-nv' | |
strategy: | |
matrix: | |
os: ["ubuntu-latest"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
- name: Remove golang | |
run: sudo rm -rf $(which go) | |
- name: Add goenv to PATH | |
run: export PATH="$PATH:./bin/goenv" | |
- name: Create Homebrew PR | |
uses: dawidd6/action-homebrew-bump-formula@v4 | |
with: | |
# Required, custom GitHub access token with the 'public_repo' and 'workflow' scopes | |
token: ${{ secrets.GH_HOMEBREW_TOKEN }} | |
# Optional, will create tap repo fork in organization | |
# org: ORG | |
# Optional, use the origin repository instead of forking | |
no_fork: false | |
# Formula name, required | |
formula: goenv | |
# Optional, will be determined automatically | |
tag: ${{github.ref}} | |
# Optional, will be determined automatically | |
revision: ${{github.sha}} | |
# Optional, if don't want to check for already open PRs | |
force: true # true |