Merge pull request #216 from DomT4/leaves_tweak #66
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| 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 checkout -b update-readme-with-help-output | |
| git commit -am "Update README.md with --help output" | |
| git push origin update-readme-with-help-output --force |