2024-08-23 20:56:06 +00:00
|
|
|
kind: pipeline
|
2024-08-23 21:09:28 +00:00
|
|
|
name: example
|
2024-08-23 20:56:06 +00:00
|
|
|
|
|
|
|
steps:
|
2024-08-23 21:09:28 +00:00
|
|
|
- name: print-original-author
|
2024-08-23 20:56:06 +00:00
|
|
|
image: alpine
|
|
|
|
commands:
|
2024-08-23 21:11:39 +00:00
|
|
|
- echo "Original author $DRONE_COMMIT_AUTHOR"
|
2024-08-23 21:09:28 +00:00
|
|
|
|
|
|
|
- name: override-author
|
|
|
|
image: alpine
|
|
|
|
environment:
|
2024-08-23 21:12:07 +00:00
|
|
|
DRONE_COMMIT_AUTHOR: "CustomAuthor"
|
|
|
|
commands:
|
2024-08-23 21:17:22 +00:00
|
|
|
- DRONE_COMMIT_AUTHOR="test"
|
2024-08-23 21:12:07 +00:00
|
|
|
- echo "Overridden author $DRONE_COMMIT_AUTHOR"
|