From 9015ac7f4d8e26c3c415e62f1a1af24df73988a8 Mon Sep 17 00:00:00 2001 From: pngwn Date: Wed, 21 Aug 2024 12:49:45 +0100 Subject: [PATCH] Update test.yaml --- .github/workflows/test.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 054d43d3..35cc3852 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -11,10 +11,10 @@ jobs: preview: runs-on: ubuntu-latest steps: - - run: echo "${{ toJson(github.event) }}" >> json.json - - run: cat json.json + - run: echo "module.exports = ${{ toJson(github.event) }}" >> json.js + - run: cat json.js - uses: actions/github-script@v7 with: script: | - const json = require('./json.json'); + const json = require('./json.js'); console.log(JSON.stringify(json, null, 2));