Content-Length: 300339 | pFad | http://github.com/Fryguy/github-docs/commit/dd98f14594d423f474be686bd0b2c18e9d7ed965

28 Update automatically-redelivering-failed-deliveries-for-a-github-app-… · Fryguy/github-docs@dd98f14 · GitHub
Skip to content

Commit dd98f14

Browse files
Update automatically-redelivering-failed-deliveries-for-a-github-app-webhook.md (github#35605)
Co-authored-by: Alex Nguyen <150945400+nguyenalex836@users.noreply.github.com>
1 parent a6dca88 commit dd98f14

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/webhooks/using-webhooks/automatically-redelivering-failed-deliveries-for-a-github-app-webhook.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
- name: Setup Node.js
7777
uses: {% data reusables.actions.action-setup-node %}
7878
with:
79-
node-version: '18.x'
79+
node-version: '20.x'
8080

8181
# This step installs the octokit library. The script that this workflow will run uses the octokit library.
8282
- name: Install dependencies
@@ -98,18 +98,18 @@ jobs:
9898
WORKFLOW_REPO: {% raw %}${{ github.event.repository.name }}{% endraw %}
9999
WORKFLOW_REPO_OWNER: {% raw %}${{ github.repository_owner }}{% endraw %}
100100
run: |
101-
node .github/workflows/scripts/redeliver-failed-deliveries.js
101+
node .github/workflows/scripts/redeliver-failed-deliveries.mjs
102102
```
103103
104104
## Adding the script
105105
106106
This section demonstrates how you can write a script to find and redeliver failed deliveries.
107107
108-
Copy this script into a file called `.github/workflows/scripts/redeliver-failed-deliveries.js` in the same repository where you saved the {% data variables.product.prodname_actions %} workflow file above.
108+
Copy this script into a file called `.github/workflows/scripts/redeliver-failed-deliveries.mjs` in the same repository where you saved the {% data variables.product.prodname_actions %} workflow file above.
109109

110110
```javascript copy annotate
111111
// This script uses {% data variables.product.company_short %}'s Octokit SDK to make API requests. For more information, see "[AUTOTITLE](/rest/guides/scripting-with-the-rest-api-and-javascript)."
112-
const { App, Octokit } = require("octokit");
112+
import { App, Octokit } from "octokit";
113113
114114
//
115115
async function checkAndRedeliverWebhooks() {

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Fryguy/github-docs/commit/dd98f14594d423f474be686bd0b2c18e9d7ed965

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy