diff --git a/.github/workflows/update-poetry-lock.yml b/.github/workflows/update-poetry-lock.yml deleted file mode 100644 index 2b1d9e4a..00000000 --- a/.github/workflows/update-poetry-lock.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: Update Poetry Lock - -on: - pull_request: - branches: [main] - paths: - - 'pyproject.toml' - -jobs: - update-lock: - runs-on: ubuntu-latest - permissions: - contents: write - if: github.actor == 'dependabot[bot]' - - steps: - - name: Check out the repository - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: '3.x' - - - name: Install system dependencies - run: | - sudo apt update - sudo apt install -y libmemcached-dev - - - name: Install Poetry - run: pip install poetry - - - name: Update dependencies and commit poetry.lock - run: | - git fetch origin +${{ github.head_ref }}:${{ github.head_ref }} - git checkout ${{ github.head_ref }} - poetry lock --no-update - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git add poetry.lock - git commit -m "Update poetry.lock" || echo "No changes to commit" - git push origin HEAD:refs/heads/${{ github.head_ref }}