Skip to content

Commit

Permalink
Update performance_pre.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
smeyer198 committed Dec 11, 2024
1 parent 89f5089 commit d929e78
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/performance_pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ jobs:
name: android-performance
path: gh-pages-output/android_history.txt

# This step is required because the 'gh-pages' branch has no actions for the post steps
- name: Switch to default branch
run: git checkout ${{ github.event.repository.default_branch }}

performance-report:
runs-on: ubuntu-latest
needs: performance-android
Expand All @@ -68,6 +72,12 @@ jobs:

- name: Generate HTML report
run: |
for f in "$gh-pages-output"/*
do
echo $(basename $f)
done
echo "<html><body><h1>Aggregated Test Results</h1><ul>" > gh-pages-output/index.html
cat gh-pages-output/android_history.txt | while read line; do
echo "${line}"
Expand All @@ -80,3 +90,9 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./gh-pages-output

- name: Delete artifacts
uses: geekyeggo/delete-artifact@v5
with:
name: |
android-performance

0 comments on commit d929e78

Please sign in to comment.