.woodpecker/.deploy.yaml: add a random message to PR

This commit is contained in:
Tom Neuber 2024-10-09 01:18:17 +02:00
parent 191b20f899
commit 1a832a7667
Signed by: tom
GPG key ID: F17EFE4272D89FF6

View file

@ -48,10 +48,18 @@ steps:
- branch: - branch:
exclude: master exclude: master
event: push event: push
- name: generate random pull request message
image: git.ar21.de/tom/push-message-randomizer:latest
pull: true
when:
- event: push
- name: create pull request (prod) - name: create pull request (prod)
image: johnwalkerx/gitea-pull-request-create-plugin:latest image: johnwalkerx/gitea-pull-request-create-plugin:latest
pull: true pull: true
commands:
- PLUGIN_PR_BODY_MESSAGE="$(cat message.txt)"
settings: settings:
pr_body_message: ""
gitea_address: https://git.ar21.de gitea_address: https://git.ar21.de
gitea_token: gitea_token:
from_secret: FORGEJO_API from_secret: FORGEJO_API
@ -63,6 +71,8 @@ steps:
pr_body: | pr_body: |
### Dashboard image update ### Dashboard image update
$${PLUGIN_PR_BODY_MESSAGE}
### Configuration ### Configuration
📅 **Schedule**: Branch creation - At any time, Automerge - At any time. 📅 **Schedule**: Branch creation - At any time, Automerge - At any time.
@ -79,7 +89,10 @@ steps:
- name: create pull request (staging) - name: create pull request (staging)
image: johnwalkerx/gitea-pull-request-create-plugin:latest image: johnwalkerx/gitea-pull-request-create-plugin:latest
pull: true pull: true
commands:
- PLUGIN_PR_BODY_MESSAGE="$(cat message.txt)"
settings: settings:
pr_body_message: ""
gitea_address: https://git.ar21.de gitea_address: https://git.ar21.de
gitea_token: gitea_token:
from_secret: FORGEJO_API from_secret: FORGEJO_API
@ -91,6 +104,8 @@ steps:
pr_body: | pr_body: |
### Dashboard image update ### Dashboard image update
$${PLUGIN_PR_BODY_MESSAGE}
### Configuration ### Configuration
📅 **Schedule**: Branch creation - At any time, Automerge - At any time. 📅 **Schedule**: Branch creation - At any time, Automerge - At any time.