Skip to content

Commit 0c89fdd

Browse files
committed
fix error of CI sync-cac-oscal
Signed-off-by: Sophia Wang <huiwang@redhat.com>
1 parent 31c4204 commit 0c89fdd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/sync-cac-oscal.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ jobs:
162162
done < "$GITHUB_WORKSPACE"/updates
163163
# Step 10: Check if there is any existing open PR
164164
- name: Check if there is any existing open PR
165+
if: ${{ env.CHANGE_FOUND == 'true' }}
165166
run: |
166167
cd oscal-content
167168
# Use the GitHub CLI to search for an open PR.
@@ -332,7 +333,7 @@ jobs:
332333
--head $BRANCH_NAME --state open --json id \
333334
| jq length)
334335
if [ "$PR_EXISTS" -gt 0 ]; then
335-
echo "PR ${{ env.BRANCH_NAME }} already exists. Skipping PR creation.
336+
echo "PR ${{ env.BRANCH_NAME }} already exists. Skipping PR creation."
336337
echo "Add a comment for the CAC PR ${{ env.PR_NUMBER }}."
337338
gh pr comment ${{ env.BRANCH_NAME }} --body "${PR_BODY}"
338339
else

0 commit comments

Comments
 (0)