Generated PDF in the repository is a bad idea. Git is for sourcecode. PDF is neither code nor source. Please create a clean webservice who generate the PDf and use the github-action to upload the txt to that webservice.