Skip to content

Commit

Permalink
Tweak inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewGable committed Nov 8, 2024
1 parent 27bd813 commit f7d951f
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { google } from 'googleapis';

Check failure on line 1 in .github/actions/javascript/checkAndroidStatus/checkAndroidStatus.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Replace `{·google·` with `*·as·core·from·'@actions/core';⏎import·{google`
import GithubUtils from "@github/libs/GithubUtils";

Check failure on line 2 in .github/actions/javascript/checkAndroidStatus/checkAndroidStatus.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Replace `GithubUtils·from·"@github/libs/GithubUtils"` with `CONST·from·'@github/libs/CONST'`
import * as core from '@actions/core';

Check failure on line 3 in .github/actions/javascript/checkAndroidStatus/checkAndroidStatus.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Replace `*·as·core·from·'@actions/core';⏎import·CONST·from·"@github/libs/CONST"` with `GithubUtils·from·'@github/libs/GithubUtils'`
import CONST from "@github/libs/CONST";

const PACKAGE_NAME = process.env.PACKAGE_NAME;
const GOOGLE_KEY_FILE = process.env.GOOGLE_KEY_FILE;
const REPO_OWNER = process.env.REPO_OWNER || '';
const REPO_NAME = process.env.REPO_NAME || '';
const PACKAGE_NAME = core.getInput('PACKAGE_NAME', { required: true });

Check failure on line 6 in .github/actions/javascript/checkAndroidStatus/checkAndroidStatus.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Replace `·required:·true·` with `required:·true`
const GOOGLE_KEY_FILE = core.getInput('GOOGLE_KEY_FILE', { required: true });

Check failure on line 7 in .github/actions/javascript/checkAndroidStatus/checkAndroidStatus.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Replace `·required:·true·` with `required:·true`
const HALTED_STATUS = 'halted';

async function checkAndroidStatus() {
Expand Down Expand Up @@ -47,8 +46,8 @@ async function checkAndroidStatus() {

async function getLatestReleaseDate() {
const { data } = await GithubUtils.octokit.repos.getLatestRelease({
owner: REPO_OWNER,
repo: REPO_NAME,
owner: CONST.GITHUB_OWNER,
repo: CONST.APP_REPO,
});

const releaseDate = data.published_at?.split('T')[0];
Expand Down

0 comments on commit f7d951f

Please sign in to comment.