mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2026-09-03 05:10:16 +03:00
Catch a 404 from repos.getContent for the CONTRIBUTORS_FILE and treat it as an empty file so repositories upgrading to this workflow can create CONTRIBUTORS.md on the first accepted merge. Only swallows the 404 for the CONTRIBUTORS_FILE and rethrows other errors. Also make the commit payload include the latest file sha only when present (avoid passing a null sha when creating the file).