From 9df8e2aae63ca29104f63d7b57a118ed013ce02d Mon Sep 17 00:00:00 2001 From: iamdez99 Date: Thu, 13 Jun 2024 16:48:35 -0400 Subject: [PATCH] .. --- .github/workflows/CCT-CHAT-BOT-Smoke.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CCT-CHAT-BOT-Smoke.yml b/.github/workflows/CCT-CHAT-BOT-Smoke.yml index af8e83e73..d9d975c56 100644 --- a/.github/workflows/CCT-CHAT-BOT-Smoke.yml +++ b/.github/workflows/CCT-CHAT-BOT-Smoke.yml @@ -66,13 +66,13 @@ jobs: git add . git commit -m "Publishing cucumber report ${{ github.run_number }}" git push -f https://${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:gh-pages - - name: Initialize Test Results File - run: echo '

CCT CHAT BOT Smoke Test Results

' > cct-smoke-test-results.html - name: Update Test Results and Append to Index File env: GH_TOKEN: ${{ secrets.GH_TOKEN }} run: | - sed -i '1s/.*/

CCT CHAT BOT Smoke Test Results<\/h1>/' cct-smoke-test-results.html + if [ ! -f cct-smoke-test-results.html ]; then + echo '

CCT CHAT BOT Smoke Test Results

' > cct-smoke-test-results.html + fi echo "

Test Report ${{ steps.reportpath.outputs.path }}/report-${{ steps.timestamp.outputs.timestamp }}.html

" >> cct-smoke-test-results.html git add cct-smoke-test-results.html git commit -m "Update cct-smoke-test-results.html"