Skip to content

Commit

Permalink
Merge branch 'ejs/updates'
Browse files Browse the repository at this point in the history
  • Loading branch information
estephinson committed Aug 21, 2023
2 parents 641e439 + e105aa0 commit 40fb0f7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
on:
workflow_dispatch:
concurrency: blah

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- run: npm install -g netlify-cli
- run: netlify deploy --build --prod
8 changes: 6 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,12 @@ integration.onDisable(async ({ queryStringParameters }, { client }) => {
},
} = await client.getSiteIntegration(siteId);

await client.disableBuildhook(siteId);
await client.removeBuildToken(teamId, siteId);
try {
await client.disableBuildhook(siteId);
await client.removeBuildToken(teamId, siteId);
} catch {
console.log("Build hooks already disabled");
}

await client.deleteBuildHook(siteId, buildHookId);
return {
Expand Down

0 comments on commit 40fb0f7

Please sign in to comment.