Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Workflow improvements to fix CI pipline (#1438)
Krystle Salazar6fac25069fab
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 217259c89..059a7115a 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -62,6 +62,7 @@ jobs:clean-playwright-failure-comment:name: Remove previous Playwright test failure commentsruns-on: ubuntu-latest+ if: github.ref != 'refs/heads/main'steps:- uses: peter-evans/find-comment@v2@@ -84,6 +85,8 @@ jobs:nuxt-playwright:name: Nuxt Playwright testsruns-on: ubuntu-latest+ needs:+ - buildsteps:- uses: actions/checkout@v2@@ -121,26 +124,13 @@ jobs:playwright-test-failure-comment:name: Share Playwright test debugging instructionsruns-on: ubuntu-latest- if: always() && (needs.nuxt-playwright.result == 'failure' || needs.storybook-playwright.result == 'failure')+ if: always() && github.ref != 'refs/heads/main' && (needs.nuxt-playwright.result == 'failure' || needs.storybook-playwright.result == 'failure')needs:- nuxt-playwright- storybook-playwrightsteps:- - uses: actions/download-artifact@v2- with:- path: test-results-- - name: Check if test results exist- id: check-results- run: |- has_results=$(stat test-results/nuxt-test-results || stat test-results/storybook-test-results) || false- if [[ $has_results ]]; then- echo "::set-output name=has-failure::true"- fi-- uses: peter-evans/create-or-update-comment@v2- if: steps.check-results.outputs.has-failurewith:issue-number: ${{ github.event.pull_request.number }}body: |