Skip to content

Commit

Permalink
feat(notify): ARTIFACT_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Airkro committed Jul 24, 2024
1 parent 947fcb0 commit cb9b6cc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions packages/notify/lib/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const {
JOB_ID,
npm_package_version = '未知',
PROJECT_WEB_URL,
ARTIFACT_URL,
} = process.env;

function getVersion({ isLatest, version, rc }) {
Expand Down Expand Up @@ -397,6 +398,27 @@ export async function createContent({
},
],
},
...(ARTIFACT_URL
? [
{
type: 'heading',
depth: 3,
children: [
{
type: 'text',
value: '部署资源包:',
},
],
},
{
type: 'code',
lang: 'bash',
value: [`curl ${ARTIFACT_URL}`, `wget ${ARTIFACT_URL}`].join(
'\n\n',
),
},
]
: []),
{
type: 'list',
spread: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/notify/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bring-it/notify",
"version": "0.3.9",
"version": "0.3.11",
"description": "Send releases notifications",
"license": "MIT",
"author": {
Expand Down

0 comments on commit cb9b6cc

Please sign in to comment.