From 6a1e07fbebb939679987147beed3196ceb9a9389 Mon Sep 17 00:00:00 2001 From: Marcel Kornblum Date: Mon, 18 Sep 2023 15:20:08 +0100 Subject: [PATCH] Update dependabot-requirements.yaml (#452) another go at having dependabot PRs auto-build requirements --- .github/workflows/dependabot-requirements.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dependabot-requirements.yaml b/.github/workflows/dependabot-requirements.yaml index 6218a1573..9df039205 100644 --- a/.github/workflows/dependabot-requirements.yaml +++ b/.github/workflows/dependabot-requirements.yaml @@ -13,7 +13,7 @@ jobs: contents: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: python-version: "3.11" @@ -21,14 +21,16 @@ jobs: run: | pip install --upgrade pip pip install poetry + - run: git checkout HEAD - name: Generate requirements run: | poetry export --without-hashes --output requirements.txt - name: Commit requirements.txt continue-on-error: true run: | - git config --global user.name 'GitHub Actions' - git config --global user.email 'your-username@users.noreply.github.com' - git commit -am "Automated update of requirements.txt" + git config user.name 'GitHub Actions' + git config user.email github-actions@github.com + git add . + git commit -m "Automated update of requirements.txt" git push - - run: echo "Just making a successful exit code" + - run: echo "Making a successful exit code so we don't block the merge"