There was an error while loading. Please reload this page.
1 parent 31c4204 commit 0c89fddCopy full SHA for 0c89fdd
1 file changed
.github/workflows/sync-cac-oscal.yml
@@ -162,6 +162,7 @@ jobs:
162
done < "$GITHUB_WORKSPACE"/updates
163
# Step 10: Check if there is any existing open PR
164
- name: Check if there is any existing open PR
165
+ if: ${{ env.CHANGE_FOUND == 'true' }}
166
run: |
167
cd oscal-content
168
# Use the GitHub CLI to search for an open PR.
@@ -332,7 +333,7 @@ jobs:
332
333
--head $BRANCH_NAME --state open --json id \
334
| jq length)
335
if [ "$PR_EXISTS" -gt 0 ]; then
- echo "PR ${{ env.BRANCH_NAME }} already exists. Skipping PR creation.
336
+ echo "PR ${{ env.BRANCH_NAME }} already exists. Skipping PR creation."
337
echo "Add a comment for the CAC PR ${{ env.PR_NUMBER }}."
338
gh pr comment ${{ env.BRANCH_NAME }} --body "${PR_BODY}"
339
else
0 commit comments