Skip to content

Commit 6346202

Browse files
fix(workflows): generated PRs to be authored by LizardByte-bot (#492)
1 parent 51f760c commit 6346202

6 files changed

Lines changed: 30 additions & 0 deletions

.github/workflows/__call-release-notifier.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ permissions:
66
on:
77
workflow_call:
88
secrets:
9+
GH_EMAIL:
10+
description: 'GitHub email to use for the workflow.'
11+
required: true
12+
GH_NAME:
13+
description: 'GitHub name to use for the workflow.'
14+
required: true
915
GH_TOKEN:
1016
description: 'GitHub token to use for the workflow.'
1117
required: true
@@ -109,6 +115,8 @@ jobs:
109115
steps.check-release.outputs.isLatestRelease == 'true'
110116
uses: peter-evans/create-pull-request@v7
111117
with:
118+
author: "${{ secrets.GH_NAME }} <${{ secrets.GH_EMAIL }}>"
119+
committer: "${{ secrets.GH_NAME }} <${{ secrets.GH_EMAIL }}>"
112120
token: ${{ secrets.GH_TOKEN }}
113121
commit-message: |
114122
chore: Add blog post for ${{ github.event.repository.name }} release ${{ github.event.release.tag_name }}

.github/workflows/__call-update-flathub-repo.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ permissions:
66
on:
77
workflow_call:
88
secrets:
9+
GH_EMAIL:
10+
description: 'GitHub email to use for the workflow.'
11+
required: true
12+
GH_NAME:
13+
description: 'GitHub name to use for the workflow.'
14+
required: true
915
GH_TOKEN:
1016
description: 'GitHub token to use for the workflow.'
1117
required: true
@@ -152,6 +158,8 @@ jobs:
152158
fromJson(steps.download.outputs.downloaded_files)[0]
153159
uses: peter-evans/create-pull-request@v7
154160
with:
161+
author: "${{ secrets.GH_NAME }} <${{ secrets.GH_EMAIL }}>"
162+
committer: "${{ secrets.GH_NAME }} <${{ secrets.GH_EMAIL }}>"
155163
path: "flathub/${{ env.FLATHUB_PKG }}"
156164
token: ${{ secrets.GH_TOKEN }}
157165
commit-message: "chore: Update ${{ env.FLATHUB_PKG }} to ${{ github.event.release.tag_name }}"

.github/workflows/__call-update-pacman-repo.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ permissions:
66
on:
77
workflow_call:
88
secrets:
9+
GH_EMAIL:
10+
description: 'GitHub email to use for the workflow.'
11+
required: true
12+
GH_NAME:
13+
description: 'GitHub name to use for the workflow.'
14+
required: true
915
GH_TOKEN:
1016
description: 'GitHub token to use for the workflow.'
1117
required: true
@@ -95,6 +101,8 @@ jobs:
95101
fromJson(steps.download.outputs.downloaded_files)[0]
96102
uses: peter-evans/create-pull-request@v7
97103
with:
104+
author: "${{ secrets.GH_NAME }} <${{ secrets.GH_EMAIL }}>"
105+
committer: "${{ secrets.GH_NAME }} <${{ secrets.GH_EMAIL }}>"
98106
add-paths: |
99107
pkgbuilds/*
100108
token: ${{ secrets.GH_TOKEN }}

.github/workflows/_release-notifier.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ jobs:
2020
uses: LizardByte/.github/.github/workflows/__call-release-notifier.yml@master
2121
if: github.repository_owner == 'LizardByte'
2222
secrets:
23+
GH_EMAIL: ${{ secrets.GH_BOT_EMAIL }}
24+
GH_NAME: ${{ secrets.GH_BOT_NAME }}
2325
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}

.github/workflows/_update-flathub-repo.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ jobs:
2626
uses: LizardByte/.github/.github/workflows/__call-update-flathub-repo.yml@master
2727
if: github.repository_owner == 'LizardByte'
2828
secrets:
29+
GH_EMAIL: ${{ secrets.GH_BOT_EMAIL }}
30+
GH_NAME: ${{ secrets.GH_BOT_NAME }}
2931
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}

.github/workflows/_update-pacman-repo.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@ jobs:
2626
uses: LizardByte/.github/.github/workflows/__call-update-pacman-repo.yml@master
2727
if: github.repository_owner == 'LizardByte'
2828
secrets:
29+
GH_EMAIL: ${{ secrets.GH_BOT_EMAIL }}
30+
GH_NAME: ${{ secrets.GH_BOT_NAME }}
2931
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}

0 commit comments

Comments
 (0)