Skip to content

Commit

Permalink
Update main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
joosangkim authored May 30, 2024
1 parent 43d1487 commit f7f8bc7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ const PLATFORM = process.platform || 'linux';
const ARCH = process.arch || 'amd64';
const githubToken = core.getInput('github-token');
core.info(githubToken);
core.debug(process.arch);
core.debug(process.platform);
const ARGOCD_SERVER_URL = core.getInput('argocd-server-url');
const ARGOCD_TOKEN = core.getInput('argocd-token');
const VERSION = core.getInput('argocd-version');
Expand Down Expand Up @@ -88,6 +86,9 @@ async function setupArgoCDCommand(): Promise<(params: string) => Promise<ExecRes
async function getApps(): Promise<App[]> {
const url = `https://${ARGOCD_SERVER_URL}/api/v1/applications?fields=items.metadata.name,items.spec.source.path,items.spec.source.repoURL,items.spec.source.targetRevision,items.spec.source.helm,items.spec.source.kustomize,items.status.sync.status`;
core.info(`Fetching apps from: ${url}`);
core.debug(process.arch)
core.debug(process.platform)
core.debug(`https://github.com/argoproj/argo-cd/releases/download/${VERSION}/argocd-${PLATFORM}-${ARCH}`)
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let responseJson: any;
try {
Expand Down

0 comments on commit f7f8bc7

Please sign in to comment.