Skip to content

Commit

Permalink
fix(github): can't compile to tf-aws, missing cloud.service (#50)
Browse files Browse the repository at this point in the history
* fix(github): using interface for credentials instead of cloud.secret

* fix(github): can't compile to tf-aws, missing cloud.service

* fix(github): can't compile to tf-aws, missing cloud.service
  • Loading branch information
ekeren authored Jan 3, 2024
1 parent 9ed8d9c commit 2861b56
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
22 changes: 14 additions & 8 deletions github/lib.w
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,21 @@ pub class ProbotApp {
status: 200
};
});

if !std.Node.of(this).app.isTestEnvironment {
let devNgrok = new ngrok.Ngrok(
url: this.api.url,
);

new cloud.OnDeploy(inflight () => {
this.updateWebhookUrl("{devNgrok.url}/webhook");
});
let target = util.env("WING_TARGET");
if target == "sim" {
let devNgrok = new ngrok.Ngrok(
url: this.api.url,
);

new cloud.OnDeploy(inflight () => {
this.updateWebhookUrl("{devNgrok.url}/webhook");
});
} else {
new cloud.OnDeploy(inflight () => {
this.updateWebhookUrl("{this.api.url}/webhook");
});
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion github/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@winglibs/github",
"description": "A Wing library for GitHub Probot",
"version": "0.0.3",
"version": "0.0.4",
"author": {
"name": "Elad Cohen",
"email": "[email protected]"
Expand Down

0 comments on commit 2861b56

Please sign in to comment.