diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b62d62..48dc92f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,10 +26,13 @@ jobs: uses: actions/checkout@v2 - name: Test test key and passphrase + uses: actions/github-script@0.9.0 id: test - run: | - echo ::set-output name=pgp::$(cat .github/test-key.pgp) - echo ::set-output name=passphrase::$(cat .github/test-key.pass) + with: + script: | + import fs = require('fs'); + core.setOutput('pgp', fs.readFileSync('.github/test-key.pgp', {encoding: 'utf8'})); + core.setOutput('passphrase', fs.readFileSync('.github/test-key.pass', {encoding: 'utf8'})); - name: Import GPG private key id: import_gpg