Skip to content

Commit

Permalink
cicd: toolforge-jobs -> toolforge jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthvp committed Mar 29, 2024
1 parent 00684de commit 2a45e30
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/toolforge-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
fi;
if [[ "$(git diff --name-only HEAD HEAD@{1} | grep -c jobs.yml)" -gt 0 ]]; then
echo "Updating jobs.yml ...";
toolforge-jobs load jobs.yml;
toolforge jobs load jobs.yml;
fi;
if [[ "$(git diff --name-only HEAD HEAD@{1} | grep -c eventstream)" -gt 0 || "$(git rev-list --format=%B --max-count=1 HEAD)" == *"!restart"* ]]; then
echo "Restarting eventstream-router ...";
Expand Down
2 changes: 1 addition & 1 deletion eventstream-router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"scripts": {
"test": "node --require ts-node/register main.ts",
"restart": "toolforge-jobs restart stream"
"restart": "toolforge jobs restart stream"
}
}
6 changes: 3 additions & 3 deletions utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,14 @@ export function upperFirst(str: string) {
return str[0].toLowerCase() + str.slice(1);
}

export function setIntersection<T>(a: Set<T>, b: Set<T>): Set<T> {
export function setIntersection<T>(a: Iterable<T>, b: Set<T>): Set<T> {
return new Set([...a].filter(x => b.has(x)));
}

export function setUnion<T>(a: Set<T>, b: Set<T>): Set<T> {
export function setUnion<T>(a: Iterable<T>, b: Iterable<T>): Set<T> {
return new Set([...a, ...b]);
}

export function setDifference<T>(a: Set<T>, b: Set<T>): Set<T> {
export function setDifference<T>(a: Iterable<T>, b: Set<T>): Set<T> {
return new Set([...a].filter(x => !b.has(x)));
}

0 comments on commit 2a45e30

Please sign in to comment.