Skip to content

Commit 9eda719

Browse files
fixes
1 parent 178a718 commit 9eda719

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

.github/scripts/get_list_files_to_delete.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ done
4444

4545
# Display the files marked for deletion
4646
if [ ${#files_to_delete[@]} -gt 0 ]; then
47-
echo "V2_OPEN_API_FILES_TO_DELETE=${files_to_delete[*]}" >> "${GITHUB_ENV:?}"
47+
echo "V2_OPEN_API_FILES_TO_DELETE=${files_to_delete[*]}" >> "${GITHUB_OUTPUT:?}"
4848
for file_to_del in "${files_to_delete[@]}"; do
4949
echo "${file_to_del}"
5050
done

.github/workflows/release-cleanup.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,18 +65,20 @@ jobs:
6565
if: env.FILES_CHANGED == 'true'
6666
with:
6767
token: ${{ secrets.api_bot_pat }}
68-
title: "APIBot: Release Cleanup"
68+
title: "APIx-Bot: Release Cleanup 🧹🍃"
6969
commit-message: "release cleanup"
7070
delete-branch: true
7171
branch: release-cleanup-${{ github.run_id }}
72-
body: |
73-
> NOTE: This PR is autogenerated.
74-
> DO NOT MERGE THE PR IF YOU ARE UNSURE ABOUT THE CHANGE.
75-
76-
# Description
77-
This PR deletes files related to an "Upcoming" api that has been released to a "Stable" API.
78-
79-
## Why?
80-
The MongoDB Admin API renders OpenAPI specifications and changelog files from this repository.
81-
Since this API version is now “Stable,” the files corresponding to its previous “Upcoming” state are obsolete.
82-
Deleting these files prevents the Admin API from inadvertently displaying outdated or irrelevant information from these older specifications and changelogs.
72+
add-paths: |
73+
openapi/v2/*
74+
body: |
75+
> NOTE: This PR is autogenerated.
76+
> DO NOT MERGE THE PR IF YOU ARE UNSURE ABOUT THE CHANGE.
77+
78+
# Description
79+
This PR deletes files related to an `Upcoming` api that has been released to a `Stable` API.
80+
81+
## Why?
82+
The MongoDB Admin API renders OpenAPI specifications and changelog files from this repository.
83+
Since this API version is now `Stable`, the files corresponding to its previous `Upcoming` state are obsolete.
84+
Deleting these files prevents the Admin API from inadvertently displaying outdated or irrelevant information from these older specifications and changelogs.

0 commit comments

Comments
 (0)