Skip to content

Commit

Permalink
[meta] fix publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MelanX committed Jul 11, 2024
1 parent 879e7a6 commit 846da9d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ jobs:
commits=$(git log $GIT_PREVIOUS_COMMIT..${{ github.sha }} --pretty=format:'%s')
echo "Commits since last push:"
echo "$commits"
if echo "$commits" | grep -qE '^\[meta\]'; then
total_commits=$(echo "$commits" | wc -l)
meta_commits=$(echo "$commits" | grep -E '^\[meta\]' | wc -l)
if [ "$total_commits" -eq "$meta_commits" ]; then
echo "Only meta commits present, skip publishing"
echo "run_publish=false" >> $GITHUB_ENV
else
Expand Down

0 comments on commit 846da9d

Please sign in to comment.