When writing a file, clear the cache and try a second time

You must use the master version of octokit which has a clearCache()
method
Merge branch 'github-refactor-oerpub' into phil-fix-patch-error