Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let PR workflow check file sizes #4005

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add comment in case of size violation
  • Loading branch information
bernt-matthias committed Oct 5, 2021
commit 6176149380fa5de4b8a3b7a3cee5ee89c6ddcd09
13 changes: 12 additions & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,18 @@ jobs:
with:
name: 'File size report'
path: file_size_report.txt

- name: PR Comment
uses: actions/github-script@v2
with:
github-token: ${{ secrets.PAT }}
script: |
github.issues.createComment({
issue_number: ${{ github.event.number }},
owner: context.repo.owner,
repo: context.repo.repo,
body: ':warning: Some files in this PR are large. Try to reduce the size, e.g. by using content assertions.'
})

# Planemo test the changed repositories, each chunk creates an artifact
# containing HTML and JSON reports for the executed tests
test:
Expand Down