name: Request bottles after upstream merge.

on:
  push:
    branches:
      - master
    paths:
      - 'Formula/*'

jobs:
  request-bottles:
    if: startsWith(github.event.head_commit.message, 'Merge') == true
    runs-on: ubuntu-latest
    container:
      image: homebrew/brew
    steps:
      - name: Tap linux-dev
        env:
          HOMEBREW_NO_AUTO_UPDATE: 1
        run: |
          brew tap homebrew/linux-dev
      - name: Request bottles
        env:
          HOMEBREW_GITHUB_API_TOKEN: ${{secrets.HOMEBREW_GITHUB_API_TOKEN}}
          GIT_COMMITTER_NAME: ${{github.event.pusher.name}}
          GIT_COMMITTER_EMAIL: ${{github.event.pusher.email}}
        run: |
          cd $(brew --repo ${{github.repository}})
          brew find-formulae-to-bottle | xargs -n1 brew request-bottle

name: Request bottles after upstream merge.

on:
  push:
    branches:
      - master
    paths:
      - 'Formula/*'

jobs:
  request-bottles:
    if: startsWith(github.event.head_commit.message, 'Merge') == true
    runs-on: ubuntu-latest
    container:
      image: homebrew/brew
    steps:
      - name: Tap linux-dev
        run: |
          brew tap homebrew/linux-dev
      - name: Request bottles
        env:
          HOMEBREW_GITHUB_API_TOKEN: ${{secrets.HOMEBREW_GITHUB_API_TOKEN}}
          GIT_COMMITTER_NAME: ${{github.event.pusher.name}}
          GIT_COMMITTER_EMAIL: ${{github.event.pusher.email}}
        run: |
          cd $(brew --repo ${{github.repository}})
          brew find-formulae-to-bottle | xargs -n1 brew request-bottle

Revert "workflows: don't update before tap"
Revert "workflows: don't update before tap"

This reverts commit ddbdbabae99621e31b15c40b0f5770bbbb1c4c14.
