Skip to content

Commit

Permalink
Merge pull request #553 from techmatters/SJH-js_action_code
Browse files Browse the repository at this point in the history
JS action code
  • Loading branch information
stephenhand authored Dec 18, 2023
2 parents f8522e1 + e28866e commit 7e22020
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
* For details see https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action#commit-tag-and-push-your-action-to-github
*/

import { setOutput, setFailed } from '@actions/core';
import fetch from 'node-fetch';
import Twilio from 'twilio';
const { setOutput, setFailed } = require('@actions/core');
const fetch = require('node-fetch');
const Twilio = require('twilio');

async function healthCheck () {
// `who-to-greet` input defined in action metadata file
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/main-action/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"healthcheck": "npm install && npx ts-node --esm ./healthcheck.ts"
"healthcheck": "npm install && node healthcheck.js"
},
"author": "",
"license": "AGPL",
Expand Down

0 comments on commit 7e22020

Please sign in to comment.