| 1 | on: |
| 2 | workflow_run: |
| 3 | workflows: ["Build"] |
| 4 | types: |
| 5 | - completed |
| 6 | name: Bump homebrew |
| 7 | jobs: |
| 8 | publish: |
| 9 | name: Update homebrew-core |
| 10 | runs-on: macos-latest |
| 11 | steps: |
| 12 | - uses: actions/checkout@v6 |
| 13 | with: |
| 14 | fetch-depth: 0 |
| 15 | - name: Set env |
| 16 | run: echo "RELEASE_VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV |
| 17 | - name: Homebrew bump formula |
| 18 | uses: dawidd6/action-homebrew-bump-formula@v7 |
| 19 | with: |
| 20 | token: ${{ secrets.GH_HOMEBREW_TOKEN }} |
| 21 | formula: dasel |
| 22 | tap: homebrew/core |
| 23 | tag: ${{ env.RELEASE_VERSION }} |
| 24 | force: true |