Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
chore(github-action): ensure we not fail due to missing blobs dir.
Browse files Browse the repository at this point in the history
The blobs dir is only present when a blob is modified or has not yet been published.
  • Loading branch information
o-orand committed Dec 27, 2023
1 parent 3e87c1e commit e38b4d7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/on-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
export VENDIR_GITHUB_API_TOKEN="${GITHUB_TOKEN}"
./vendor.sh
git add vendir.lock
# FIXME: optimize for idem potentency
# FIXME: optimize for idempotency
./addblob.sh
remote_repo="https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git"
Expand All @@ -79,7 +79,10 @@ jobs:
else
echo "Nothing to commit"
fi
tree -s blobs src
tree -s src
if [ -d blobs ];then # The blobs dir is only present when a blob is modified or has not yet been published.
tree -s blobs
fi

# TODO: optimize to only create a dev release if the blobs.yaml file has some changes
Expand Down

0 comments on commit e38b4d7

Please sign in to comment.