Обновить .gitea/workflows/wf_full.yaml
Some checks failed
Full building alt images / build-process (push) Successful in 3m10s
Full building alt images / test-process (push) Failing after 4m53s
Full building alt images / finish_process (push) Successful in 59s

This commit is contained in:
Надежда Федорова 2024-04-15 17:25:07 +03:00
parent 93927be6b3
commit 1fbe27bca4

View File

@ -71,7 +71,7 @@ jobs:
ORG: ${{ env.ORG }}
BR: ${{ env.BRANCH }}
continue-on-error: true
- name: Send notification if test crashed
- name: Send notification if build crashed
if: ${{ steps.build-script.outcome != 'success' }}
run: |
issueid=$(curl -X 'GET' "$URL/api/v1/repos/$REPO/gitea-image-forge/issues?state=all&type=issues&page=1&limit=1&token=$T" -H 'accept: application/json' -s | jq '.[].number' -r)
@ -100,6 +100,7 @@ jobs:
id: test-script
continue-on-error: true
run: |
errors=''
for IM in $(ls ${{ gitea.workspace }}/org/$ORG/ | xargs); do \
echo "image=$IM"; \
if test -f ${{ gitea.workspace }}/org/$ORG/$IM/test; \
@ -113,8 +114,8 @@ jobs:
fi; \
echo "podman rmi --all"; \
podman rmi --all; \
if test -f ${{ gitea.workspace }}/$IM.log; \
then errors="$errors; TEST ERROR OF IMAGE $IM: $(cat ${{ gitea.workspace }}/$IM.log)"; fi; \
if test -f $IM.log; \
then errors="$errors; TEST ERROR OF IMAGE $IM: $(cat $IM.log)"; fi; \
done
echo "ERR=$errors" >> ${GITHUB_ENV}
env:
@ -123,7 +124,7 @@ jobs:
URL: ${{ needs.build-process.outputs.url }}
REPO: ${{ needs.build-process.outputs.repo }}
- name: Send notification if test crashed
if: ${{ env.ERR == '' }}
if: ${{ env.ERR != '' }}
run: |
issueid=$(curl -X 'GET' "$URL/api/v1/repos/$REPO/gitea-image-forge/issues?state=all&type=issues&page=1&limit=1&token=$T" -H 'accept: application/json' -s | jq '.[].number' -r)
body="Testing images finish with some errors. ${{ env.ERR }}"