Skip to content

Commit 1487f2c

Browse files
committed
Updating github-config
1 parent c73ab80 commit 1487f2c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/update-builder-toml.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ jobs:
126126
- name: Check if branch has commits
127127
id: check-if-commits
128128
run: |
129-
# get the number of commits in the branch
130-
commits=$(git rev-list --count automation/builder-toml-update)
129+
# get the number of commits since it branched off from main
130+
commits=$(git rev-list --count main..automation/builder-toml-update)
131131
if [ "$commits" -eq 0 ]; then
132132
echo "No commits in branch automation/builder-toml-update"
133133
echo "commits=0" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)