diff --git a/.github/workflows/homebrew-manual.yml b/.github/workflows/homebrew-manual.yml new file mode 100644 index 0000000..35ff2a0 --- /dev/null +++ b/.github/workflows/homebrew-manual.yml @@ -0,0 +1,22 @@ +name: Release to Homebrew +on: + workflow_run: + workflows: ["Release to PyPI"] + types: + - completed + workflow_dispatch: + inputs: + tag-name: + description: 'Tag to bump the formula to' + required: true +jobs: + homebrew-core: + runs-on: ubuntu-latest + steps: + - uses: mislav/bump-homebrew-formula-action@v2 + with: + formula-name: dotdrop + tag-name: ${{ github.event.inputs.tag-name }} + download-url: https://github.com/deadc0de6/dotdrop/archive/${{ github.event.inputs.tag-name }}.tar.gz + env: + COMMITTER_TOKEN: ${{secrets.HOMEBREW_FORMULA_GH_TOKEN}} diff --git a/.github/workflows/homebrew-release.yml b/.github/workflows/homebrew-release.yml index 5058e24..fb07a75 100644 --- a/.github/workflows/homebrew-release.yml +++ b/.github/workflows/homebrew-release.yml @@ -4,11 +4,6 @@ on: workflows: ["Release to PyPI"] types: - completed - workflow_dispatch: - inputs: - tag-name: - description: 'Tag to bump the formula to' - required: true jobs: homebrew-core: runs-on: ubuntu-latest