Skip to content

Commit

Permalink
update dependabot action
Browse files Browse the repository at this point in the history
  • Loading branch information
Der-Henning committed Jan 31, 2024
1 parent c565286 commit 69b51c1
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,14 @@ 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 }}
python-version: ${{ env.PYTHON_VERSION }}
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 }}

0 comments on commit 69b51c1

Please sign in to comment.