Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdez99 committed Jun 5, 2024
1 parent ca1ac2a commit 6b686cd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/NERD-Progression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,17 @@ jobs:
run: |
git config --global user.email "[email protected]"
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 "<h1>NERD Progression Test Reports will be available here.</h1>" nerd-progression-test-results.html
then
echo "<h1>NERD Progression Test Reports will be available here.</h1>" > nerd-progression-test-results.html
fi
echo "<h3><a href='${{ steps.reportpath.outputs.path }}/report-${{ steps.timestamp.outputs.timestamp }}.html'>Test Report ${{ steps.reportpath.outputs.path }}/report-${{ steps.timestamp.outputs.timestamp }}.html</a></h3>" >> nerd-progression-test-results.html
git add nerd-progression-test-results.html
git commit -m "Update nerd-progression-test-results.html"
Expand Down

0 comments on commit 6b686cd

Please sign in to comment.