diff --git a/.github/scripts/ci.sc b/.github/scripts/ci.sc index 59fa99c16..f82e4e002 100755 --- a/.github/scripts/ci.sc +++ b/.github/scripts/ci.sc @@ -235,7 +235,10 @@ def runTests(jobs: String, runTarget: String = "ip", resultDir: Option[os.Path], os.write(actualResultDir / "failed-logs" / s"$job.txt", handle.out.text) failed :+ job } else { - writeCycleUpdates(job, testRunDir, actualResultDir) + if (runTarget == "ip") { + writeCycleUpdates(job, testRunDir, actualResultDir) + } + failed } } diff --git a/.github/workflows/subsystem.yml b/.github/workflows/subsystem.yml index 1a06a2e1e..238636e8d 100644 --- a/.github/workflows/subsystem.yml +++ b/.github/workflows/subsystem.yml @@ -112,8 +112,6 @@ jobs: name: test-reports-${{ matrix.id }} path: | test-results-*/failed-tests.md - test-results-*/cycle-updates.md - test-results-*/*_cycle.json - uses: actions/upload-artifact@v4 if: failure() @@ -199,22 +197,3 @@ jobs: echo -e "\n## Failed tests\n" >> $GITHUB_STEP_SUMMARY shopt -s nullglob cat test-results-*/failed-tests.md >> $GITHUB_STEP_SUMMARY - echo -e "\n## Cycle updates\n" >> $GITHUB_STEP_SUMMARY - shopt -s nullglob - cat test-results-*/cycle-updates.md >> $GITHUB_STEP_SUMMARY - - name: "Commit cycle updates" - run: | - nix shell ".#ammonite" -c .github/scripts/ci.sc mergeCycleData - git config user.name github-actions - git config user.email github-actions@github.com - changed_cases=$(git diff --name-only '.github/cases/**/default.json') - - if [ -n "$changed_cases" ]; then - echo "changed cases: $changed_cases" - git add '.github/cases/**/default.json' - git commit -m "[ci] update test case cycle data" - git push origin ${{ github.head_ref }} - else - echo "No cycle change detect" - fi -