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"