Skip to content

Commit 15b7735

Browse files
committed
Update cleanUpOpenedIssues.yml
using bash to fetch issues urls
1 parent 5b26d67 commit 15b7735

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/cleanUpOpenedIssues.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,21 @@ jobs:
1515
env:
1616
GITHUB_TOKEN: ${{ secrets.GITHUBACTIONS_TOKEN }}
1717

18+
- name: Write issues to file
19+
run: |
20+
echo '${{ steps.issues.outputs.data }}' > issues.json
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: '14'
26+
1827
- name: Print issue URLs
1928
run: |
20-
const issues = JSON.parse('${{ steps.issues.outputs.data }}');
29+
const fs = require('fs');
30+
const issues = JSON.parse(fs.readFileSync('issues.json', 'utf8'));
2131
const filteredIssues = issues.filter(issue => issue.body.includes('Is your portal managed or self-hosted?\r\n\r\nManaged'));
2232
for (const issue of filteredIssues) {
2333
console.log(issue.html_url);
2434
}
25-
shell: node
35+
shell: bash

0 commit comments

Comments
 (0)