From 6b686cd574a4f23a7350f999c4a017b5b9f0c71c Mon Sep 17 00:00:00 2001 From: iamdez99 Date: Wed, 5 Jun 2024 14:58:05 -0400 Subject: [PATCH] .. --- .github/workflows/NERD-Progression.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/NERD-Progression.yml b/.github/workflows/NERD-Progression.yml index fb5f4504e..982f158b6 100644 --- a/.github/workflows/NERD-Progression.yml +++ b/.github/workflows/NERD-Progression.yml @@ -50,19 +50,17 @@ jobs: run: | git config --global user.email "diegojuarezbusiness@gmail.com" git config --global user.name "iamdez99" + git fetch + git checkout gh-pages mkdir -p ${{ steps.reportpath.outputs.path }} mv target/nerd-progression-reports/*.html ${{ steps.reportpath.outputs.path }}/report-${{ steps.timestamp.outputs.timestamp }}.html 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: Update Test Results and Check/Update Index File + - name: Update Test Results and Append to Index File env: GH_TOKEN: ${{ secrets.GH_TOKEN }} run: | - if ! grep -Fxq "

NERD Progression Test Reports will be available here.

" nerd-progression-test-results.html - then - echo "

NERD Progression Test Reports will be available here.

" > nerd-progression-test-results.html - fi echo "

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

" >> nerd-progression-test-results.html git add nerd-progression-test-results.html git commit -m "Update nerd-progression-test-results.html"