Skip to content

Commit 19bdea4

Browse files
committed
Update release action
1 parent 49a028a commit 19bdea4

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/update_version.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,14 @@ def process_readme_changelog(readme_path, version):
5858

5959
# Remove the "-snapshot" from the header
6060
new_header = f"## {version}"
61-
updated_content = re.sub(snapshot_pattern, new_header + '\n\n', content)
61+
updated_content = re.sub(snapshot_pattern, "## Snapshot\n\n\n" + new_header + '\n\n', content)
6262

6363
# Write the updated README
6464
with open(readme_path, 'w') as f:
6565
f.write(updated_content)
6666

6767
print(f"✅ Updated README.md: converted '## Snapshot' to '## {version}'")
68+
6869
return True, section_content
6970

7071
def get_base_version(version):

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -275,13 +275,6 @@ USAGE:
275275
Get the status of async-profiler on a running Java application
276276

277277
OPTIONS:
278-
-app-instance-index -i [index], select to which instance of the app to connect
279-
-args -a, Miscellaneous arguments to pass to the command (if supported) in the
280-
container, be aware to end it with a space if it is a simple option. For
281-
commands that create arbitrary files (jcmd, asprof), the environment
282-
variables @FSPATH, @ARGS, @APP_NAME, @FILE_NAME, and @STATIC_FILE_NAME are
283-
available in --args to reference the working directory path, arguments,
284-
application name, and generated file name respectively.
285278
-container-dir -cd, the directory path in the container that the heap dump/JFR/... file will be
286279
saved to
287280
-dry-run -n, just output to command line what would be executed
@@ -292,6 +285,13 @@ OPTIONS:
292285
-no-download -nd, don't download the heap dump/JFR/... file to local, only keep it in the
293286
container, implies '--keep'
294287
-verbose -v, enable verbose output for the plugin
288+
-app-instance-index -i [index], select to which instance of the app to connect
289+
-args -a, Miscellaneous arguments to pass to the command (if supported) in the
290+
container, be aware to end it with a space if it is a simple option. For
291+
commands that create arbitrary files (jcmd, asprof), the environment
292+
variables @FSPATH, @ARGS, @APP_NAME, @FILE_NAME, and @STATIC_FILE_NAME are
293+
available in --args to reference the working directory path, arguments,
294+
application name, and generated file name respectively.
295295

296296
</pre>
297297

0 commit comments

Comments
 (0)