Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The script fetches `main` and tags, finds the latest merged PR with the `datadog
- `datadog-ci` minor bump: action minor bump
- `datadog-ci` patch bump: action patch bump

The release creates the next immutable action tag, updates the moving major tag, and creates a GitHub Release.
The release creates the next immutable action tag, updates the moving major tag, and creates a GitHub Release with GitHub-generated release notes starting from the previous immutable action tag.

Preview the release without creating tags or a GitHub Release:

Expand Down
16 changes: 3 additions & 13 deletions scripts/release-datadog-ci-bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -252,17 +252,6 @@ if gh release view "$next_tag" --repo "$repo" >/dev/null 2>&1; then
exit 1
fi

notes_file=$(mktemp)
trap 'rm -f "$notes_file"' EXIT
cat > "$notes_file" <<EOF
Updates the default \`datadog-ci-version\` from \`$latest_datadog_ci_version\` to \`$release_datadog_ci_version\`.

Triggered by $release_source
EOF
if [[ -n "$release_pr_merged_at" ]]; then
echo "Merged at: $release_pr_merged_at" >> "$notes_file"
fi

echo "Latest action release tag: $latest_tag"
echo "Next action release tag: $next_tag"
echo "Action bump kind: $action_bump_kind"
Expand All @@ -286,6 +275,7 @@ git push --force "$remote" "refs/tags/$major_tag"

gh release create "$next_tag" \
--repo "$repo" \
--target "$release_sha" \
--title "$next_tag" \
--notes-file "$notes_file"
--verify-tag \
--generate-notes \
--notes-start-tag "$latest_tag"
Loading