From 42b66f52cc93fd2132fe1667620a8ef7ee1febb2 Mon Sep 17 00:00:00 2001 From: Constrat <56174894+Constrat@users.noreply.github.com> Date: Fri, 4 Oct 2024 16:14:02 +0200 Subject: [PATCH] ci: Resource Updater push perfs (#10733) --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .github/workflows/res-update-game.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/res-update-game.yml b/.github/workflows/res-update-game.yml index 1582ac3d4c..95bd7dbee6 100644 --- a/.github/workflows/res-update-game.yml +++ b/.github/workflows/res-update-game.yml @@ -104,14 +104,14 @@ jobs: parameters=("CN" "US" "JP" "KR") for param in "${parameters[@]}"; do - { - if curl -s -o "stages_${param}.json" "${baseUrl}${param}"; then - echo "Successfully fetched data for ${param}" - else - echo "Failed to fetch data for ${param}" >&2 - exit 1 - fi - } & + { + if curl -s -o "stages_${param}.json" "${baseUrl}${param}"; then + echo "Successfully fetched data for ${param}" + else + echo "Failed to fetch data for ${param}" >&2 + exit 1 + fi + } & done wait @@ -132,6 +132,7 @@ jobs: # actions/checkout uses ${{ secrets.GITHUB_TOKEN }} by default, meaning all steps will inherit it persist-credentials: false # Needed to bypass protection rules in Push changes show-progress: false + fetch-depth: 3 - name: Restore ResourceUpdater.exe from cache id: cache-resupd @@ -194,7 +195,7 @@ jobs: Write-Output "gitdiff=$(git diff --name-only --diff-filter=ACM 2>$null | Select-String -Pattern '\.json$' -List)" >> $env:GITHUB_OUTPUT - name: Run prettier - uses: actionsx/prettier@v3 + uses: Nerixyz/actionsx-prettier@v3-adj with: args: -w ${{ steps.task_sorting.outputs.gitdiff }}