message: fix push script
diff: @@ -3,15 +3,12 @@ const { execSync } = require("child_process");
  // dangerfile depends on this message
  execSync('git config --global user.name "GitHub Action"');
  -execSync("git pull");
  -execSync("git add ./**/*.png");
  -execSync(`git commit -m "CHORE: Update screenshots"`);
  -
  -let count = 6;
  +let count = 10;
  +function retry(cb, onError) {
  while (true) {
  try {
  - execSync("git push --verbose");
  + cb();
  break;
  } catch (e) {
  @@ -23,6 +20,28 @@ while (true) {
  throw e;
  }
  - execSync("git pull --rebase");
  + onError();
  + }
  }
  }
  +
  +execSync("git pull");
  +
  +retry(
  + function () {
  + execSync("git add ./**/*.png");
  + execSync(`git commit -m "CHORE: Update screenshots"`);
  + },
  + function () {
  + execSync("git pull --rebase --autostash");
  + }
  +);
  +
  +retry(
  + function () {
  + execSync("git push --verbose");
  + },
  + function () {
  + execSync("git pull --rebase");
  + }
  +);
  