Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,30 @@ steps:
artifacts: "releases/*.tar.gz;releases/*.zip"
attestation_name: "buildkite-agent-github-releases.attestation.json"

- name: ":memo: Trigger docs draft"
if: build.branch == "main"
soft_fail: true
command: |
PR_NUMBER=$$(echo "$${BUILDKITE_MESSAGE}" | grep -oP '\(#\K[0-9]+(?=\)$$)' || true)
if [ -z "$$PR_NUMBER" ]; then
echo "Could not extract PR number from commit message, skipping"
exit 0
fi
echo "--- :memo: Triggering docs-draft-writer for buildkite/agent#$$PR_NUMBER"
cat <<EOF | buildkite-agent pipeline upload
steps:
- trigger: "docs-draft-writer"
label: ":memo: Docs draft for buildkite/agent#$$PR_NUMBER"
async: true
soft_fail: true
build:
message: "Docs draft for buildkite/agent#$$PR_NUMBER"
branch: "main"
env:
UPSTREAM_REPO: "buildkite/agent"
UPSTREAM_PR_NUMBER: "$$PR_NUMBER"
EOF

- name: ":pipeline: Upload Release Pipeline"
key: upload-release-steps
depends_on:
Expand Down