Update Corgea CLI Formula #127
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: Update Corgea CLI Formula | |
| on: | |
| # Manual trigger | |
| workflow_dispatch: | |
| # External trigger from other repositories | |
| repository_dispatch: | |
| types: [update-formula] | |
| # Scheduled check (daily at 2 AM UTC) | |
| schedule: | |
| - cron: '0 2 * * *' | |
| jobs: | |
| update-formula: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install requests | |
| - name: Check for new version | |
| id: check_version | |
| run: | | |
| python .github/scripts/check_version.py | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Create Pull Request | |
| if: steps.check_version.outputs.update_needed == 'true' | |
| uses: peter-evans/create-pull-request@v5 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit-message: "Update corgea-cli to version ${{ steps.check_version.outputs.new_version }}" | |
| title: "Update corgea-cli to version ${{ steps.check_version.outputs.new_version }}" | |
| body: | | |
| This PR updates the Homebrew formula for corgea-cli to the latest version available on PyPI. | |
| **Changes:** | |
| - Version: ${{ steps.check_version.outputs.current_version }} → ${{ steps.check_version.outputs.new_version }} | |
| - SHA256: Updated to match new release | |
| - URL: Updated to point to new release tarball | |
| **PyPI Release:** https://pypi.org/project/corgea-cli/${{ steps.check_version.outputs.new_version }}/ | |
| This update was automatically generated by GitHub Actions. | |
| branch: update-corgea-cli-${{ steps.check_version.outputs.new_version }} | |
| delete-branch: true | |
| labels: | | |
| automated-update | |
| version-bump |