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): debug on-commits
Browse files Browse the repository at this point in the history
git commit was failing when there was something to commit!
  • Loading branch information
o-orand committed Dec 27, 2023
1 parent af0090f commit c1c7647
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/on-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,13 @@ jobs:
remote_repo="https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git"
git add config/blobs.yml
! git commit -a -m "updating blobs" && \
git --no-pager log --oneline -5 && \
git push ${remote_repo} HEAD:master
git status
if ! git commit -a --dry-run;then
git commit -a -m "updating blobs" && \
git push ${remote_repo} HEAD:master
else
echo "Nothing to commit"
fi

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

0 comments on commit c1c7647

Please sign in to comment.