Обновить .gitea/workflows/wf_full.yaml
This commit is contained in:
parent
93927be6b3
commit
1fbe27bca4
@ -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 }}"
|
||||
|
Loading…
Reference in New Issue
Block a user