Skip to content

Commit

Permalink
fix: ci: some discord release message fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Panakotta00 committed Oct 28, 2024
1 parent 95b1f1e commit d510487
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-to-smr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
body: '{getModByReference(modReference:"FicsItNetworks"){versions(filter:{order_by:created_at}){approved}}}'
})
if (!response.ok) {
console.log(`Checking Fetch: Response is not OK: ${response.status}`;
console.log(`Checking Fetch: Response is not OK: ${response.status}`);
} else {
const json = await response.json();
let mod = json.data.getModByReference[0];
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/send-discord-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ jobs:
script: |
let body = process.env.body;
let version = process.env.version;
let split = body.split(/_(.*)/s);
console.log(body);
let split = body.split(/\n(.*)/s);
split.splice(1, 0, `_(${version})_`);
split.push("\n\n<@&1018202499678736446>");
return split.join("");
Expand Down

0 comments on commit d510487

Please sign in to comment.