From 69b51c1eed79827eb2dca12dd7fdb8da6a3158a3 Mon Sep 17 00:00:00 2001 From: Henning Merklinger Date: Wed, 31 Jan 2024 16:14:47 +0100 Subject: [PATCH] update dependabot action --- .github/workflows/dependabot.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index cbadee14..33377303 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -18,9 +18,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - # Fetch the last 2 commits instead of just 1. (Fetching just 1 commit would overwrite the whole history) - fetch-depth: 2 - uses: ./.github/actions/setup-poetry-action with: poetry-version: ${{ env.POETRY_VERSION }} @@ -28,15 +25,7 @@ jobs: install-dependencies: false - name: Run poetry export run: poetry export -f requirements.txt --output requirements.txt --without-hashes - - name: Get last commit message - id: last-commit - run: | - echo "message=$(git log -1 --pretty=%s)" >> $GITHUB_OUTPUT - echo "author=$(git log -1 --pretty=\"%an <%ae>\")" >> $GITHUB_OUTPUT - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_author: ${{ steps.last-commit.outputs.author }} - commit_message: ${{ steps.last-commit.outputs.message }} - commit_options: --amend --no-edit - push_options: --force - skip_fetch: true + with: + commit_message: Update requirements.txt + branch: ${{ github.head_ref }}