diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index f0f9bddee..8e9f39ce9 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -29,40 +29,29 @@ jobs: ##################################### TO NOT CHANGE ################################# - - name: Define give_runs_log function + - name: Execute give_runs_log from test-ci repo run: | - give_runs_log() { - local log_file="$1" - if [ -f "$log_file" ]; then - head -n -1 "$log_file" - exit_code=$(tail -n 1 "$log_file") - if [[ "$exit_code" == "Exit Code: 1" ]]; then - exit 1 - fi - else - exit 1 - fi - } + chmod +x test-ci/scripts/give_runs_log.sh - name: Pixi download run: | - give_runs_log "outputs/pixi.log" + ./test-ci/scripts/give_runs_log.sh "outputs/pixi.log" - name: Run tests and generate reports run: | - give_runs_log "outputs/test-ci.log" + ./test-ci/scripts/give_runs_log.sh "outputs/test-ci.log" - name: Prepare the push to wiki run: | - give_runs_log "outputs/wiki-clone.log" + ./test-ci/scripts/give_runs_log.sh "outputs/wiki-clone.log" - name: Commit to wiki run: | - give_runs_log "outputs/commit-push-wiki.log" + ./test-ci/scripts/give_runs_log.sh "outputs/commit-push-wiki.log" - name: Wiki report URLs run: | - give_runs_log "outputs/wiki-report-urls.log" + ./test-ci/scripts/give_runs_log.sh "outputs/wiki-report-urls.log"