mirror of
https://github.com/SethCohen/github-releases-to-discord
synced 2026-09-07 20:03:23 +00:00
fix: fixed ReferenceError on require vs import
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const core = require('@actions/core');
|
||||
const github = require('@actions/github');
|
||||
import fetch from 'node-fetch'
|
||||
import core from '@actions/core';
|
||||
import github from '@actions/github';
|
||||
import fetch from 'node-fetch';
|
||||
|
||||
async function getContext () {
|
||||
const payload = github.context.payload
|
||||
|
||||
Reference in New Issue
Block a user