We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c73ab80 commit 1487f2cCopy full SHA for 1487f2c
1 file changed
.github/workflows/update-builder-toml.yml
@@ -126,8 +126,8 @@ jobs:
126
- name: Check if branch has commits
127
id: check-if-commits
128
run: |
129
- # get the number of commits in the branch
130
- 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)
131
if [ "$commits" -eq 0 ]; then
132
echo "No commits in branch automation/builder-toml-update"
133
echo "commits=0" >> "$GITHUB_OUTPUT"
0 commit comments