chore(deps): update cog requirement aiofiles to v25.1.0 #34
Workflow file for this run
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: Compile Requirements | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "*/info.json" | |
| - ".github/compile_cog_requirements.py" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "*/info.json" | |
| - ".github/compile_cog_requirements.py" | |
| workflow_dispatch: | |
| jobs: | |
| compile-requirements: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v5 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| ref: ${{ github.head_ref || github.ref }} | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| - name: Compile requirements | |
| run: python3 .github/compile_cog_requirements.py | |
| - name: Check for changes | |
| id: check_changes | |
| run: | | |
| if git diff --quiet requirements.txt; then | |
| echo "changed=false" >> $GITHUB_OUTPUT | |
| else | |
| echo "changed=true" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Commit and push changes | |
| if: steps.check_changes.outputs.changed == 'true' | |
| run: | | |
| git config --local user.name 'github-actions[bot]' | |
| git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com' | |
| git add requirements.txt | |
| git commit -m "chore: update cog requirements.txt" | |
| git push |