Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
wsipak committed Nov 9, 2023
1 parent 3f61808 commit 3b9d1c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ jobs:

- name: Update the `latest` file in the bucket.
run: |
pwd
ls
CURRENT_LATEST=""
LATEST_REMOTE_FILE="gs://zephyr-samples-builder/zephyr/latest"
Expand All @@ -92,6 +94,9 @@ jobs:
cd zephyrproject/zephyr
git fetch origin main
echo "ZEPHYR_VERSION: $ZEPHYR_VERSION"
echo "CURRENT_LATEST: $CURRENT_LATEST"
# if `latest doesn't exist or is older then ZEPHYR_VERSION that was built in this workflow.
if [ -z "$CURRENT_LATEST" ] || ! git merge-base --is-ancestor "$ZEPHYR_VERSION" "$CURRENT_LATEST"; then
echo $ZEPHYR_VERSION > latest
Expand Down

0 comments on commit 3b9d1c5

Please sign in to comment.