-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|