Skip to content

Commit

Permalink
workflows: on_target: commit ppk badge always
Browse files Browse the repository at this point in the history
Currently badge does not get committed if previous tests fail.
Always commit it, script exits without fail if no file is found.

Signed-off-by: Giacomo Dematteis <[email protected]>
  • Loading branch information
DematteisGiacomo committed Dec 2, 2024
1 parent 0d81fef commit 6073a2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/on_target.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ jobs:
MEMFAULT_PROJECT_SLUG: ${{ vars.MEMFAULT_PROJECT_SLUG }}

- name: Commit and Push Badge File to gh-pages Branch
if: always()
continue-on-error: true
working-directory: thingy91x-oob
env:
Expand Down
6 changes: 3 additions & 3 deletions tests/on_target/scripts/commit_badge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ CSV_FILE_DEST=docs/power_measurements.csv
# Check if files exist
if [ ! -f $BADGE_FILE ]; then
echo "Badge file not found: $BADGE_FILE"
exit 1
exit 0
fi
if [ ! -f $HTML_FILE ]; then
echo "HTML file not found: $HTML_FILE"
exit 1
exit 0
fi
if [ ! -f $CSV_FILE ]; then
echo "CSV file not found: $CSV_FILE"
exit 1
exit 0
fi

# Configure Git
Expand Down

0 comments on commit 6073a2f

Please sign in to comment.