Skip to content

Commit 47a07f4

Browse files
authored
Merge pull request #281 from meilisearch/fix-pr-automation
Adapt manifest for workflow dispatch
2 parents 954dd46 + 4f58c5a commit 47a07f4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/update-meilisearch-version.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ jobs:
2222
- name: Get version from payload
2323
id: version
2424
run: |
25-
VERSION="${{ github.event.client_payload.version }}"
25+
# Support both repository_dispatch (client_payload) and workflow_dispatch (inputs)
26+
if [ -n "${{ github.event.inputs.version }}" ]; then
27+
VERSION="${{ github.event.inputs.version }}"
28+
else
29+
VERSION="${{ github.event.client_payload.version }}"
30+
fi
2631
2732
# Sanitize: remove newlines, carriage returns, and % characters to prevent injection
2833
VERSION=$(printf '%s' "$VERSION" | tr -d '\n\r%')
@@ -119,7 +124,7 @@ jobs:
119124
with:
120125
token: ${{ secrets.MEILI_BOT_GH_PAT }}
121126
commit-message: "chore(version): bump Meilisearch to ${{ steps.version.outputs.new_version }}"
122-
title: "⬆️ Bump Meilisearch to ${{ steps.version.outputs.new_version }}"
127+
title: "Bump Meilisearch to ${{ steps.version.outputs.new_version }}"
123128
body: |
124129
## Description
125130
@@ -144,5 +149,6 @@ jobs:
144149
labels: |
145150
dependencies
146151
automated
152+
reviewers: brunoocasali
147153
delete-branch: true
148154

0 commit comments

Comments
 (0)