diff --git a/.github/workflows/automerge-for-humans-merging.yml b/.github/workflows/automerge-for-humans-merging.yml index fd7f6293..22384973 100644 --- a/.github/workflows/automerge-for-humans-merging.yml +++ b/.github/workflows/automerge-for-humans-merging.yml @@ -22,7 +22,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v2 with: - node-version: '18' + node-version: '16' - name: Install dependencies run: npm install @octokit/core @octokit/plugin-paginate-rest @octokit/rest node-fetch @@ -36,7 +36,7 @@ jobs: const { Octokit } = require('@octokit/rest'); const { paginateRest } = require('@octokit/plugin-paginate-rest'); - const fetch = (...args) => import('node-fetch').then(({ default: fetch }) => fetch(...args)); + const fetch = require('node-fetch'); const token = process.env.GITHUB_TOKEN; const prNumber = process.env.PR_NUMBER;