Skip to content

Commit

Permalink
Base URL needs to be a string.
Browse files Browse the repository at this point in the history
  • Loading branch information
grugnog committed Jun 24, 2022
1 parent 3c01f68 commit 968273a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ jobs:
uses: actions/github-script@v6
with:
script: |
console.log(needs.deploy.outputs);
const fs = require("fs");
const pages = fs.readFileSync('pages.txt', 'utf-8');
const urls = [];
pages.split(/\r?\n/).forEach(page => {
urls.push(${{ needs.deploy.outputs.details_url }} + page);
urls.push(`${{ needs.deploy.outputs.details_url }}${page}`);
});
console.log(urls);
core.setOutput('urls', urls);

0 comments on commit 968273a

Please sign in to comment.