diff --git a/scripts/test-renovate.sh b/scripts/test-renovate.sh index c0e7729..8824dff 100755 --- a/scripts/test-renovate.sh +++ b/scripts/test-renovate.sh @@ -23,26 +23,26 @@ fi # Specific assertions based on the test repo state echo "Checking for expected nginx update..." -if ! grep -q "renovate/nginx-1.x" renovate-output.log; then - echo "Error: Expected 'renovate/nginx-1.x' branch not found in output." +if ! grep -q "renovate/nginx-" renovate-output.log; then + echo "Error: Expected 'renovate/nginx-' branch not found in output." exit 1 fi echo "Checking for nginx PR title..." -if ! grep -q "Update nginx Docker tag to v1.29.3" renovate-output.log; then - echo "Error: Expected PR title 'Update nginx Docker tag to v1.29.3' not found." +if ! grep -q "Update nginx Docker tag to" renovate-output.log; then + echo "Error: Expected PR title 'Update nginx Docker tag to...' not found." exit 1 fi echo "Checking for expected actions/checkout update..." -if ! grep -q "renovate/actions-checkout-6.x" renovate-output.log; then - echo "Error: Expected 'renovate/actions-checkout-6.x' branch not found in output." +if ! grep -q "renovate/actions-checkout-" renovate-output.log; then + echo "Error: Expected 'renovate/actions-checkout-' branch not found in output." exit 1 fi echo "Checking for actions/checkout PR title..." -if ! grep -q "Update actions/checkout action to v6" renovate-output.log; then - echo "Error: Expected PR title 'Update actions/checkout action to v6' not found." +if ! grep -q "Update actions/checkout action to" renovate-output.log; then + echo "Error: Expected PR title 'Update actions/checkout action to...' not found." exit 1 fi