diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 66f652c17..88f51ac43 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -10,10 +10,11 @@ jobs: container: image: mcr.microsoft.com/playwright:v1.45.3-jammy steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 18 + cache: npm - name: Install dependencies run: npm ci - name: Run Playwright tests @@ -22,7 +23,7 @@ jobs: CI: 'true' - name: Upload Playwright playwright report to GitHub Actions Artifacts if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: playwright-report path: ./playwright-report @@ -35,7 +36,7 @@ jobs: shell: bash - name: Create PR Artifact if: always() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: pr path: ./pr-id.txt diff --git a/.github/workflows/pr-playwright-report.yml b/.github/workflows/pr-playwright-report.yml index 2dc7a6bef..2b9bad772 100644 --- a/.github/workflows/pr-playwright-report.yml +++ b/.github/workflows/pr-playwright-report.yml @@ -15,13 +15,13 @@ jobs: - name: Download Artifacts uses: actions/download-artifact@v4 with: - workflow: ${{ github.event.workflow_run.workflow_id }} - run_id: ${{ github.event.workflow_run.id }} + github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }} + run-id: ${{ github.event.workflow_run.id }} - name: Extract PR Number id: pr run: echo "::set-output name=id::$(