Skip to content

Commit 7e7221a

Browse files
fix: just check commits when is to open PR
1 parent 0a22439 commit 7e7221a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/ci_k8_base.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,14 @@ jobs:
210210
211211
- name: Check if there are commits between staging to main
212212
id: check_commits
213+
if: ${{ inputs.WF_CREATE_PR_IN_MAIN}}
213214
run: |
214215
if [ "$(git rev-list --count 'origin/main..HEAD')" -eq 0 ]; then
215216
echo "No commits to create pull request for."
216217
echo "name=no_commits_head_main::true" >> $GITHUB_OUTPUT
217218
else
218219
echo "Commits found. Ready to create pull request."
219-
echo "::no_commits_head_main::false" >> $GITHUB_OUTPUT
220+
echo "name::no_commits_head_main::false" >> $GITHUB_OUTPUT
220221
fi
221222
222223
- name: Create Pull Request for prod

0 commit comments

Comments
 (0)