From 116631a391657d2bd4320d852656e4f87c0fada5 Mon Sep 17 00:00:00 2001 From: Alex Velichko Date: Thu, 29 Feb 2024 10:17:49 +0300 Subject: [PATCH] feat(tests): added execute deploy in any status (#4767) --- .github/workflows/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c240fb3b82..b9408d22e4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -221,13 +221,13 @@ jobs: docker logs $(docker ps | grep front | cut -f 1 -d ' ') > logs/front.log - name: Upload test results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: playwright-results path: ./tests/sanity/playwright-report/ - name: Get Allure history uses: actions/checkout@v4 - if: ${{ github.ref == 'refs/heads/main' }} + if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }} continue-on-error: true with: ref: gh-pages @@ -243,12 +243,12 @@ jobs: allure_history: allure-history - name: Upload allure test results if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: allure-report path: ./allure-report/ - name: Deploy report to Github Pages - if: ${{ github.ref == 'refs/heads/main' }} + if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') }} uses: peaceiris/actions-gh-pages@v3 with: PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -256,7 +256,7 @@ jobs: PUBLISH_DIR: allure-history - name: Upload Logs if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: docker-logs path: ./tests/sanity/logs