From b8758fdaa12c6548aaf9294e1a0b2b72ecee3627 Mon Sep 17 00:00:00 2001 From: Pavlo Strunkin Date: Tue, 8 Aug 2023 10:20:06 +0300 Subject: [PATCH 1/2] Update playwright.yml --- .github/workflows/playwright.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index b46c6d0e..a84e32ca 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -21,9 +21,11 @@ jobs: - name: Install dependencies run: npm ci - - id: get-branch-name - run: echo "::set-output name=branch_name::$(git symbolic-ref --short HEAD)" - shell: bash + - name: Branch name 1 + run: echo running on branch ${GITHUB_REF##*/} + + - name: Branch name 2 + run: echo running on branch ${{ github.head_ref || github.ref_name }} - name: Run Playwright tests run: npx playwright test @@ -32,7 +34,7 @@ jobs: VRT_PROJECT: "VRT" VRT_ENABLESOFTASSERT: false VRT_APIKEY: ${{ secrets.VRT_API_KEY }} - VRT_BRANCHNAME: ${{ github.head_ref || steps.get-branch-name.outputs.branch_name }} + VRT_BRANCHNAME: ${{ github.head_ref || github.ref_name }} VRT_CIBUILDID: "Github run_id: ${{ github.run_id }}" - uses: actions/upload-artifact@v3 From 5ebaac118f198fd6d66c2d637be470350c39a8c9 Mon Sep 17 00:00:00 2001 From: Pavlo Strunkin Date: Tue, 8 Aug 2023 10:27:14 +0300 Subject: [PATCH 2/2] Update playwright.yml --- .github/workflows/playwright.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index a84e32ca..6d5240b1 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -21,12 +21,6 @@ jobs: - name: Install dependencies run: npm ci - - name: Branch name 1 - run: echo running on branch ${GITHUB_REF##*/} - - - name: Branch name 2 - run: echo running on branch ${{ github.head_ref || github.ref_name }} - - name: Run Playwright tests run: npx playwright test env: