Skip to content

chore(deps): update cog requirement sentry-sdk to v2.42.0 #29

chore(deps): update cog requirement sentry-sdk to v2.42.0

chore(deps): update cog requirement sentry-sdk to v2.42.0 #29

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