From 4a6ab62b6907f5034954b537dfda28f793bf0a7b Mon Sep 17 00:00:00 2001 From: Lucas Saavedra Vaz <32426024+lucasssvaz@users.noreply.github.com> Date: Wed, 12 Jun 2024 15:25:25 -0300 Subject: [PATCH] ci(push): Fix sizes upload if there is no changes (2.x) (#9839) * ci(push): Fix sizes upload if there is no changes * ci(bot): Fix GitHub actions bot commit info --- .github/workflows/lib.yml | 8 ++++---- .github/workflows/push.yml | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lib.yml b/.github/workflows/lib.yml index 6d0a0bba0f3..814ceece310 100644 --- a/.github/workflows/lib.yml +++ b/.github/workflows/lib.yml @@ -109,12 +109,12 @@ jobs: - name: Push to github repo run: | - git config user.name github-actions - git config user.email github-actions@github.com + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git add ${{ env.RESULT_LIBRARY_TEST_FILE }} git commit -m "Generated External Libraries Test Results" git push origin HEAD:gh-pages - + event_file: name: "Event File" if: | @@ -126,4 +126,4 @@ jobs: uses: actions/upload-artifact@v2 with: name: Event File - path: ${{github.event_path}} \ No newline at end of file + path: ${{github.event_path}} diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index ad4de3512e2..fe3d23f6c86 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -145,9 +145,10 @@ jobs: - name: Commit json files to gh-pages if on release branch if: github.event_name == 'push' && github.ref == 'refs/heads/release/v2.x' + continue-on-error: true run: | - git config user.name github-actions - git config user.email github-actions@github.com + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git add --all git commit -m "Updated 2.x cli compile json files" git push origin HEAD:gh-pages