From 58eb67396fad3737bbb5b7aa7568d11617a1e4d1 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sat, 2 Aug 2025 00:00:33 -0400 Subject: [PATCH] fix(workflows): generated PRs to be authored by LizardByte-bot --- .github/workflows/__call-release-notifier.yml | 8 ++++++++ .github/workflows/__call-update-flathub-repo.yml | 8 ++++++++ .github/workflows/__call-update-pacman-repo.yml | 8 ++++++++ .github/workflows/_release-notifier.yml | 2 ++ .github/workflows/_update-flathub-repo.yml | 2 ++ .github/workflows/_update-pacman-repo.yml | 2 ++ 6 files changed, 30 insertions(+) diff --git a/.github/workflows/__call-release-notifier.yml b/.github/workflows/__call-release-notifier.yml index 01bb6a7f..daa9dfba 100644 --- a/.github/workflows/__call-release-notifier.yml +++ b/.github/workflows/__call-release-notifier.yml @@ -6,6 +6,12 @@ permissions: on: workflow_call: secrets: + GH_EMAIL: + description: 'GitHub email to use for the workflow.' + required: true + GH_NAME: + description: 'GitHub name to use for the workflow.' + required: true GH_TOKEN: description: 'GitHub token to use for the workflow.' required: true @@ -109,6 +115,8 @@ jobs: steps.check-release.outputs.isLatestRelease == 'true' uses: peter-evans/create-pull-request@v7 with: + author: "${{ secrets.GH_NAME }} <${{ secrets.GH_EMAIL }}>" + committer: "${{ secrets.GH_NAME }} <${{ secrets.GH_EMAIL }}>" token: ${{ secrets.GH_TOKEN }} commit-message: | chore: Add blog post for ${{ github.event.repository.name }} release ${{ github.event.release.tag_name }} diff --git a/.github/workflows/__call-update-flathub-repo.yml b/.github/workflows/__call-update-flathub-repo.yml index b9798b0b..63923987 100644 --- a/.github/workflows/__call-update-flathub-repo.yml +++ b/.github/workflows/__call-update-flathub-repo.yml @@ -6,6 +6,12 @@ permissions: on: workflow_call: secrets: + GH_EMAIL: + description: 'GitHub email to use for the workflow.' + required: true + GH_NAME: + description: 'GitHub name to use for the workflow.' + required: true GH_TOKEN: description: 'GitHub token to use for the workflow.' required: true @@ -152,6 +158,8 @@ jobs: fromJson(steps.download.outputs.downloaded_files)[0] uses: peter-evans/create-pull-request@v7 with: + author: "${{ secrets.GH_NAME }} <${{ secrets.GH_EMAIL }}>" + committer: "${{ secrets.GH_NAME }} <${{ secrets.GH_EMAIL }}>" path: "flathub/${{ env.FLATHUB_PKG }}" token: ${{ secrets.GH_TOKEN }} commit-message: "chore: Update ${{ env.FLATHUB_PKG }} to ${{ github.event.release.tag_name }}" diff --git a/.github/workflows/__call-update-pacman-repo.yml b/.github/workflows/__call-update-pacman-repo.yml index 620d6027..f70eb192 100644 --- a/.github/workflows/__call-update-pacman-repo.yml +++ b/.github/workflows/__call-update-pacman-repo.yml @@ -6,6 +6,12 @@ permissions: on: workflow_call: secrets: + GH_EMAIL: + description: 'GitHub email to use for the workflow.' + required: true + GH_NAME: + description: 'GitHub name to use for the workflow.' + required: true GH_TOKEN: description: 'GitHub token to use for the workflow.' required: true @@ -95,6 +101,8 @@ jobs: fromJson(steps.download.outputs.downloaded_files)[0] uses: peter-evans/create-pull-request@v7 with: + author: "${{ secrets.GH_NAME }} <${{ secrets.GH_EMAIL }}>" + committer: "${{ secrets.GH_NAME }} <${{ secrets.GH_EMAIL }}>" add-paths: | pkgbuilds/* token: ${{ secrets.GH_TOKEN }} diff --git a/.github/workflows/_release-notifier.yml b/.github/workflows/_release-notifier.yml index b32da784..76ee855e 100644 --- a/.github/workflows/_release-notifier.yml +++ b/.github/workflows/_release-notifier.yml @@ -20,4 +20,6 @@ jobs: uses: LizardByte/.github/.github/workflows/__call-release-notifier.yml@master if: github.repository_owner == 'LizardByte' secrets: + GH_EMAIL: ${{ secrets.GH_BOT_EMAIL }} + GH_NAME: ${{ secrets.GH_BOT_NAME }} GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }} diff --git a/.github/workflows/_update-flathub-repo.yml b/.github/workflows/_update-flathub-repo.yml index 1f4ba3c7..35286db9 100644 --- a/.github/workflows/_update-flathub-repo.yml +++ b/.github/workflows/_update-flathub-repo.yml @@ -26,4 +26,6 @@ jobs: uses: LizardByte/.github/.github/workflows/__call-update-flathub-repo.yml@master if: github.repository_owner == 'LizardByte' secrets: + GH_EMAIL: ${{ secrets.GH_BOT_EMAIL }} + GH_NAME: ${{ secrets.GH_BOT_NAME }} GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }} diff --git a/.github/workflows/_update-pacman-repo.yml b/.github/workflows/_update-pacman-repo.yml index c62b34a4..dce30c57 100644 --- a/.github/workflows/_update-pacman-repo.yml +++ b/.github/workflows/_update-pacman-repo.yml @@ -26,4 +26,6 @@ jobs: uses: LizardByte/.github/.github/workflows/__call-update-pacman-repo.yml@master if: github.repository_owner == 'LizardByte' secrets: + GH_EMAIL: ${{ secrets.GH_BOT_EMAIL }} + GH_NAME: ${{ secrets.GH_BOT_NAME }} GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}