Skip to content

build(deps): bump actions/setup-python in the all-actions group #51

build(deps): bump actions/setup-python in the all-actions group

build(deps): bump actions/setup-python in the all-actions group #51

name: Generate --help output
# Generate `brew autoupdate --help output` for the README.md file
on:
push:
permissions:
contents: write
jobs:
generate-help-output:
name: Generate --help output
runs-on: macos-latest
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
with:
debug: false
test-bot: false
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
ref: ${{ github.ref_name }}
- name: Install Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3'
- name: Update README.md
id: generate
run: python .github/generate-help-output.py
- name: Commit changes
if: steps.generate.outputs.changed == 'true'
run: |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
git commit -am "Update README.md with --help output"
git push