diff --git a/.github/workflows/update-poetry-lock.yml b/.github/workflows/update-poetry-lock.yml index 407761ba..f9048c01 100644 --- a/.github/workflows/update-poetry-lock.yml +++ b/.github/workflows/update-poetry-lock.yml @@ -32,6 +32,8 @@ jobs: - name: Update dependencies and commit poetry.lock run: | + git fetch origin +${{ github.head_ref }}:${{ github.head_ref }} + git checkout ${{ github.head_ref }} poetry update --with test,dev,ci,docs git config --local user.email "action@github.com" git config --local user.name "GitHub Action"