mirror of
https://github.com/Homebrew/brew.git
synced 2026-08-12 22:29:27 +04:00
59 lines
1.6 KiB
YAML
59 lines
1.6 KiB
YAML
name: Autogenerated files check
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- .github/workflows/autogenerated-files.yml
|
|
- README.md
|
|
- completions/**
|
|
- docs/Manpage.md
|
|
- manpages/brew.1
|
|
- Library/Homebrew/cmd/**
|
|
- Library/Homebrew/dev-cmd/**
|
|
- Library/Homebrew/cli/parser.rb
|
|
- Library/Homebrew/completions.rb
|
|
- Library/Homebrew/env_config.rb
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
HOMEBREW_DEVELOPER: 1
|
|
HOMEBREW_NO_AUTO_UPDATE: 1
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash -xeuo pipefail {0}
|
|
|
|
jobs:
|
|
autogenerated:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'Homebrew/brew'
|
|
steps:
|
|
- name: Set up Homebrew
|
|
id: set-up-homebrew
|
|
uses: Homebrew/actions/setup-homebrew@fd832223f9f99ebf0244dd20658680e5d4aca049 # 2026.08.03.2
|
|
with:
|
|
core: false
|
|
cask: false
|
|
|
|
- name: Cache Bundler RubyGems
|
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
with:
|
|
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
|
|
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
|
|
restore-keys: ${{ runner.os }}-rubygems-
|
|
|
|
- name: Check for changes to autogenerated files
|
|
id: check
|
|
run: |
|
|
if brew generate-man-completions
|
|
then
|
|
echo "This PR modifies autogenerated files!" >&2
|
|
echo "Please ensure their source files are updated and then run the following:
|
|
brew generate-man-completions" >&2
|
|
exit 1
|
|
else
|
|
exit 0
|
|
fi
|