[Tool] Fix: Update image even if the previous task failed (#54500)

Signed-off-by: andyziye <108652123+andyziye@users.noreply.github.com>
This commit is contained in:
andyziye 2024-12-31 09:51:27 +08:00 committed by GitHub
parent 3611f4f5cf
commit e48afd7442
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -125,9 +125,9 @@ jobs:
./bin/elastic-update-image.sh $BRANCH $PR_NUMBER ubuntu
- name: update image - centos7
if: success()
if: steps.changes.outputs.thirdparty == 'true'
run: |
cd ci-tool && source lib/init.sh
rm -rf ./ci-tool && cp -rf /var/lib/ci-tool ./ci-tool && cd ci-tool && git pull && source lib/init.sh
./bin/elastic-update-image.sh $BRANCH $PR_NUMBER centos7
- name: Clean ENV