Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
f566b0ce
Unverified
Commit
f566b0ce
authored
Feb 06, 2023
by
Frank Lee
Committed by
GitHub
Feb 06, 2023
Browse files
[workflow] fixed broken rellease workflows (#2604)
parent
f7458d3e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
8 deletions
+15
-8
.github/workflows/release_docker_after_merge.yml
.github/workflows/release_docker_after_merge.yml
+2
-3
.github/workflows/release_pypi_after_merge.yml
.github/workflows/release_pypi_after_merge.yml
+3
-3
.github/workflows/scripts/generate_release_draft.py
.github/workflows/scripts/generate_release_draft.py
+10
-2
No files found.
.github/workflows/release_docker_after_merge.yml
View file @
f566b0ce
...
@@ -59,8 +59,7 @@ jobs:
...
@@ -59,8 +59,7 @@ jobs:
id
:
message-preparation
id
:
message-preparation
run
:
|
run
:
|
url=$SERVER_URL/$REPO/actions/runs/$RUN_ID
url=$SERVER_URL/$REPO/actions/runs/$RUN_ID
if [ "$STATUS" == 'success' ]
if [ $STATUS == 'success' ]
then
then
msg="The Docker image for the latest release has been successfully built and pushed to DockerHub."
msg="The Docker image for the latest release has been successfully built and pushed to DockerHub."
else
else
...
@@ -73,4 +72,4 @@ jobs:
...
@@ -73,4 +72,4 @@ jobs:
REPO
:
${{ github.repository }}
REPO
:
${{ github.repository }}
RUN_ID
:
${{ github.run_id }}
RUN_ID
:
${{ github.run_id }}
WEBHOOK_URL
:
${{ secrets.LARK_NOTIFICATION_WEBHOOK_URL }}
WEBHOOK_URL
:
${{ secrets.LARK_NOTIFICATION_WEBHOOK_URL }}
STATUS
:
${{
steps.docker-push.outcome
}}
STATUS
:
${{
needs.release.result
}}
.github/workflows/release_pypi_after_merge.yml
View file @
f566b0ce
...
@@ -34,7 +34,7 @@ jobs:
...
@@ -34,7 +34,7 @@ jobs:
notify
:
notify
:
name
:
Notify Lark via webhook
name
:
Notify Lark via webhook
needs
:
release
needs
:
build-n-publish
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
if
:
${{ always() }}
if
:
${{ always() }}
steps
:
steps
:
...
@@ -52,7 +52,7 @@ jobs:
...
@@ -52,7 +52,7 @@ jobs:
run
:
|
run
:
|
url=$SERVER_URL/$REPO/actions/runs/$RUN_ID
url=$SERVER_URL/$REPO/actions/runs/$RUN_ID
if [ $STATUS == 'success' ]
if [
"
$STATUS
"
== 'success' ]
then
then
msg="The Colossal-AI latest version has been successfully released to PyPI."
msg="The Colossal-AI latest version has been successfully released to PyPI."
else
else
...
@@ -65,4 +65,4 @@ jobs:
...
@@ -65,4 +65,4 @@ jobs:
REPO
:
${{ github.repository }}
REPO
:
${{ github.repository }}
RUN_ID
:
${{ github.run_id }}
RUN_ID
:
${{ github.run_id }}
WEBHOOK_URL
:
${{ secrets.LARK_NOTIFICATION_WEBHOOK_URL }}
WEBHOOK_URL
:
${{ secrets.LARK_NOTIFICATION_WEBHOOK_URL }}
STATUS
:
${{
steps.
publish.
outcome
}}
STATUS
:
${{
needs.build-n-
publish.
result
}}
.github/workflows/scripts/generate_release_draft.py
View file @
f566b0ce
...
@@ -57,7 +57,12 @@ def collate_release_info(commit_info_list):
...
@@ -57,7 +57,12 @@ def collate_release_info(commit_info_list):
for
commit_info
in
commit_info_list
:
for
commit_info
in
commit_info_list
:
author
=
commit_info
[
'commit'
][
'author'
][
'name'
]
author
=
commit_info
[
'commit'
][
'author'
][
'name'
]
author_url
=
commit_info
[
'author'
][
'url'
]
try
:
author_url
=
commit_info
[
'author'
][
'url'
]
except
:
# author can be None
author_url
=
None
msg
=
commit_info
[
'commit'
][
'message'
]
msg
=
commit_info
[
'commit'
][
'message'
]
match
=
re
.
search
(
pattern
,
msg
)
match
=
re
.
search
(
pattern
,
msg
)
...
@@ -86,7 +91,10 @@ def generate_release_post_markdown(current_version, last_version, release_info):
...
@@ -86,7 +91,10 @@ def generate_release_post_markdown(current_version, last_version, release_info):
# only keep the first line
# only keep the first line
msg
=
msg
.
split
(
'
\n
'
)[
0
]
msg
=
msg
.
split
(
'
\n
'
)[
0
]
item
=
f
'
{
msg
}
by [
{
author
}
](
{
author_url
}
)
\n
'
if
author_url
:
item
=
f
'
{
msg
}
by [
{
author
}
](
{
author_url
}
)
\n
'
else
:
item
=
f
'
{
msg
}
by
{
author
}
\n
'
text
.
append
(
f
'-
{
item
}
'
)
text
.
append
(
f
'-
{
item
}
'
)
text
.
append
(
'
\n
'
)
text
.
append
(
'
\n
'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment