diff --git a/builder/.github/workflows/update-builder-toml.yml b/builder/.github/workflows/update-builder-toml.yml index 90c17b74..81a51b45 100644 --- a/builder/.github/workflows/update-builder-toml.yml +++ b/builder/.github/workflows/update-builder-toml.yml @@ -126,8 +126,8 @@ jobs: - name: Check if branch has commits id: check-if-commits run: | - # get the number of commits in the branch - commits=$(git rev-list --count automation/builder-toml-update) + # get the number of commits since it branched off from main + commits=$(git rev-list --count main..automation/builder-toml-update) if [ "$commits" -eq 0 ]; then echo "No commits in branch automation/builder-toml-update" echo "commits=0" >> "$GITHUB_OUTPUT"