Skip to content

Commit d7d696e

Browse files
authored
Merge pull request #672 from keymanapp/fix/redeliver-module
fix: redeliver as a module
2 parents 387e157 + ce94a6a commit d7d696e

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/redeliver-failed-deliveries.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Node.js
2626
uses: actions/setup-node@v4
2727
with:
28-
node-version: '18.x'
28+
node-version: '24.x'
2929

3030
# This step installs the octokit library. The script that this workflow will run uses the octokit library.
3131
- name: Install dependencies
@@ -47,4 +47,4 @@ jobs:
4747
WORKFLOW_REPO_NAME: ${{ github.event.repository.name }}
4848
WORKFLOW_REPO_OWNER: ${{ github.repository_owner }}
4949
run: |
50-
node .github/workflows/scripts/redeliver-failed-deliveries.cjs
50+
node .github/workflows/scripts/redeliver-failed-deliveries.mjs

.github/workflows/scripts/redeliver-failed-deliveries.cjs renamed to .github/workflows/scripts/redeliver-failed-deliveries.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This script uses GitHub's Octokit SDK to make API requests. For more information, see [AUTOTITLE](/rest/guides/scripting-with-the-rest-api-and-javascript).
2-
const { Octokit } = require("octokit");
2+
import { Octokit } from 'octokit';
33

44
//
55
async function checkAndRedeliverWebhooks(TOKEN, ORGANIZATION_NAME, HOOK_ID, LAST_REDELIVERY_VARIABLE_NAME, WORKFLOW_REPO_NAME, WORKFLOW_REPO_OWNER) {

resources/test-redeliver-failed-deliveries.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ export LAST_REDELIVERY_VARIABLE_NAME=keyman_github_webhook_last_redelivery
77
export WORKFLOW_REPO_NAME=status.keyman.com
88
export WORKFLOW_REPO_OWNER=keymanapp
99

10-
node .github/workflows/scripts/redeliver-failed-deliveries.cjs
10+
node .github/workflows/scripts/redeliver-failed-deliveries.mjs

0 commit comments

Comments
 (0)