Skip to content

Commit

Permalink
feat(tia): update fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
stevensbkang authored Aug 1, 2023
1 parent c8d28fd commit 8fdf9c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tia-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
- name: "[Preparation] set up node.js 18.x"
uses: actions/setup-node@v3
- name: '[Preparation] Install Octokit Library'
run: npm install @octokit/core @octokit/auth-app
run: npm install @octokit/core @octokit/auth-app node-fetch
- name: '[Preparation] Fetch GitHub App Token'
uses: actions/github-script@v6
id: portainer-bot
Expand All @@ -109,7 +109,7 @@ jobs:
script: |
const { Octokit } = require("@octokit/core");
const { createAppAuth, createOAuthUserAuth } = require("@octokit/auth-app");
import fetch from "node-fetch";
const { fetch } = require(node-fetch);
const appId = process.env.PORTAINER_BOT_ID;
const privateKey = process.env.PORTAINER_BOT_KEY;
const installationId = process.env.PORTAINER_BOT_INSTALLATION_ID;
Expand Down

0 comments on commit 8fdf9c0

Please sign in to comment.