Browse Source

[fix] CI: commit author should be `searxng-bot`

If the workflow is executed with the "workflow_dispatch" trigger, the user who executed the workflow becomes the author of the commit on the PR, this is not intended.

It also reverts the body param so that the default text of the action does not appear.
Ivan Gabaldon 1 day ago
parent
commit
743f24d8c6
2 changed files with 6 additions and 2 deletions
  1. 3 1
      .github/workflows/data-update.yml
  2. 3 1
      .github/workflows/l10n.yml

+ 3 - 1
.github/workflows/data-update.yml

@@ -66,7 +66,7 @@ jobs:
         id: cpr
         uses: peter-evans/create-pull-request@v7
         with:
-          author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
+          author: "searxng-bot <searxng-bot@users.noreply.github.com>"
           committer: "searxng-bot <searxng-bot@users.noreply.github.com>"
           title: "[data] update searx.data - ${{ matrix.fetch }}"
           commit-message: "[data] update searx.data - ${{ matrix.fetch }}"
@@ -74,6 +74,8 @@ jobs:
           delete-branch: "true"
           draft: "false"
           signoff: "false"
+          body: |
+            [data] update searx.data - ${{ matrix.fetch }}
           labels: |
             data
 

+ 3 - 1
.github/workflows/l10n.yml

@@ -119,7 +119,7 @@ jobs:
         id: cpr
         uses: peter-evans/create-pull-request@v7
         with:
-          author: "${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>"
+          author: "searxng-bot <searxng-bot@users.noreply.github.com>"
           committer: "searxng-bot <searxng-bot@users.noreply.github.com>"
           title: "[l10n] update translations from Weblate"
           commit-message: "[l10n] update translations from Weblate"
@@ -127,6 +127,8 @@ jobs:
           delete-branch: "true"
           draft: "false"
           signoff: "false"
+          body: |
+            [l10n] update translations from Weblate
           labels: |
             translation