Skip to content

Commit

Permalink
Install ansi_up with exec
Browse files Browse the repository at this point in the history
  • Loading branch information
john-craft committed Jan 25, 2024
1 parent cbdfee1 commit 7b72910
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/test-migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ jobs:
exit 1
fi
- name: Install ansi_up
if: always()
run: |
npm install ansi_up
- name: Add or Update Comment on PR
uses: actions/github-script@v7
if: always()
Expand All @@ -78,6 +73,8 @@ jobs:
const { MIGRATION_OUTPUT, EXIT_CODE } = process.env
if (!MIGRATION_OUTPUT) return
const exec = require('child_process').execSync;
exec('npm install ansi_up');
const ansiUp = (await import('ansi_up')).default;
const ansi_up = new ansiUp();
const html = ansi_up.ansi_to_html(MIGRATION_OUTPUT);
Expand Down

0 comments on commit 7b72910

Please sign in to comment.