Skip to content

Commit

Permalink
Install another way
Browse files Browse the repository at this point in the history
  • Loading branch information
john-craft committed Jan 25, 2024
1 parent ee395d2 commit 6f7b2f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ jobs:
exit 1
fi
- run: npm install ansi_up

- name: Add or Update Comment on PR
uses: actions/github-script@v7
if: always()
Expand All @@ -73,9 +75,7 @@ jobs:
const { MIGRATION_OUTPUT, EXIT_CODE } = process.env
if (!MIGRATION_OUTPUT) return
const { execSync } = require('child_process');
execSync('npm install ansi_up');
const ansiUp = (await import('ansi_up')).default;
const ansiUp = require('ansi_up');
const ansi_up = new ansiUp();
const html = ansi_up.ansi_to_html(MIGRATION_OUTPUT);
Expand Down

0 comments on commit 6f7b2f3

Please sign in to comment.