Skip to content

Commit

Permalink
Merge branch 'wsip/versions' into 'main'
Browse files Browse the repository at this point in the history
fix condition for checking versions

See merge request repositories/zephyr-samples-builder!22
  • Loading branch information
msierszulski committed Dec 21, 2023
2 parents f9121f5 + 849f1ce commit c4466f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,13 @@ jobs:
echo "The remote file has $COUNT_ENTRIES entries."
# Store information about the version.
if grep -q "$ZEPHYR_VERSION" versions; then
if ! grep -q "$ZEPHYR_VERSION" versions; then
echo "New version candidate for the versions file:"
echo "$ZEPHYR_VERSION" | tee -a versions
gsutil cp versions $VERSIONS_REMOTE_FILE
else
echo "The version is already present in the versions file:"
echo "$ZEPHYR_VERSION"
fi
Print-status:
Expand Down

0 comments on commit c4466f5

Please sign in to comment.