Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/octokit-f09eb94b4d
Browse files Browse the repository at this point in the history
  • Loading branch information
andykenward authored Apr 18, 2024
2 parents bb72d80 + fb26382 commit 2ce3c6c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
- run: npm ci
run: npm run build
- name: Deploy to Cloudflare Pages
uses: unlike-ltd/github-actions-cloudflare-pages@v1.3.1
uses: unlike-ltd/github-actions-cloudflare-pages@v2.0.0
id: pages
with:
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion delete/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
timeout-minutes: 5
steps:
- name: Deploy deletion Cloudflare Pages
uses: unlike-ltd/github-actions-cloudflare-pages/delete@v1.3.1
uses: unlike-ltd/github-actions-cloudflare-pages/delete@v2.0.0
with:
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions dist/delete/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/delete/index.js.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions src/common/batch-delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,12 @@ export const batchDelete = async (
commentId
}
} catch (error) {
info(`${PREFIX} Deployment payload is not valid : ${JSON.stringify(error)}`)
const message = error instanceof Error ? error.message : 'unknown error'
info(`${PREFIX} Deployment payload is not valid : ${message}`)

return {
success: false,
error: JSON.stringify(error),
error: message,
environment: deployment.environment,
deploymentId: deployment.node_id
}
Expand Down
5 changes: 4 additions & 1 deletion src/delete/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ export async function run() {
.write()
}
} catch (error) {
setFailed(`${PREFIX} Error deleting deployments: ${JSON.stringify(error)}`)
const message =
error instanceof Error ? error.message : JSON.stringify(error)

setFailed(`${PREFIX} Error deleting deployments: ${message}`)
}
}

0 comments on commit 2ce3c6c

Please sign in to comment.