From 53033693d3b6b0d54cf1a33dbc7438f3087a8d45 Mon Sep 17 00:00:00 2001 From: alex289 Date: Sat, 8 Jul 2023 18:19:28 +0200 Subject: [PATCH] Try this --- .github/workflows/dependency-updates.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/dependency-updates.yml b/.github/workflows/dependency-updates.yml index 908a086..d604234 100644 --- a/.github/workflows/dependency-updates.yml +++ b/.github/workflows/dependency-updates.yml @@ -29,15 +29,6 @@ jobs: id: changes run: git diff --exit-code || echo "::set-output name=changes::true" - - name: Commit and push changes - if: steps.changes.outputs.changes == 'true' - run: | - git config user.name "${{ github.actor }}" - git config user.email "${{ github.actor }}@users.noreply.github.com" - git add . - git commit -m "Update packages" - git push - - name: Get current date if: steps.changes.outputs.changes == 'true' id: date @@ -47,10 +38,15 @@ jobs: if: steps.changes.outputs.changes == 'true' uses: peter-evans/create-pull-request@v3 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PAT }} branch: "update/${{ steps.date.outputs.date }}" label: dependencies delete-branch: true + commit-message: "Update packages" + committer: GitHub + author: alex289 + assignees: alex289 + reviewers: alex289 title: "Automatic Package Update ${{ steps.date.outputs.date }}" body: | This pull request includes updates to the packages in the solution.