Some checks are pending
Docs Deploy / build_and_deploy (push) Waiting to run
Generate Docs / cli (push) Waiting to run
Generate Config Doc / cli (push) Waiting to run
Go formatting / go-formatting (push) Waiting to run
Check links / markdown-link-check (push) Waiting to run
Integration / pre-test (push) Waiting to run
Integration / test on (push) Blocked by required conditions
Integration / status (push) Blocked by required conditions
Lint / Lint Go code (push) Waiting to run
Test / test (ubuntu-latest) (push) Waiting to run
31 lines
966 B
YAML
31 lines
966 B
YAML
name: Publish Ignite to HomeBrew
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
homebrew:
|
|
name: Bump Homebrew formula
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Extract version
|
|
id: extract-version
|
|
# Strip a string prefix from the git tag name:
|
|
run: |
|
|
echo "tag-name=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
|
|
|
|
- uses: mislav/bump-homebrew-formula-action@v3.3
|
|
with:
|
|
formula-name: ignite
|
|
formula-path: Formula/i/ignite.rb
|
|
homebrew-tap: Homebrew/homebrew-core
|
|
base-branch: master
|
|
download-url: https://github.com/ignite/cli/archive/refs/tags/${{ steps.extract-version.outputs.tag-name }}.tar.gz
|
|
env:
|
|
# the personal access token should have "repo" & "workflow" scopes
|
|
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
|