Skip to content

Commit

Permalink
Update mypy_primer_comment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Feb 5, 2022
1 parent 04cac4b commit 26fdd45
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/mypy_primer_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:
fs.writeFileSync("diff.zip", Buffer.from(download.data));
- run: unzip diff.zip
# 30000 bytes is about 300 lines, posting comment fails if too long
- run: |
cat diff_*.txt | head -c 30000 | tee fulldiff.txt
# Based on https://github.com/kanga333/comment-hider
- name: Hide old comments
Expand Down Expand Up @@ -77,13 +80,7 @@ jobs:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const fs = require('fs')
// Keep in sync with shards produced by mypy_primer workflow
const data = (
['diff_0.txt', 'diff_1.txt', 'diff_2.txt']
.map(fileName => fs.readFileSync(fileName, { encoding: 'utf8' }))
.join('')
.substr(0, 30000) // About 300 lines
)
const data = fs.readFileSync('fulldiff.txt', { encoding: 'utf8' })
console.log("Diff from mypy_primer:")
console.log(data)
Expand Down

1 comment on commit 26fdd45

@sobolevn
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was an accidental commit to master, see #12125

Please sign in to comment.