Skip to content

Commit

Permalink
Exclude 1-23 jobs from Prowjob Linter (#565)
Browse files Browse the repository at this point in the history
* Exclude 1-23 jobs from Prowjob Linter

* udpate
  • Loading branch information
zafs23 authored Nov 14, 2023
1 parent ff0197f commit 44bf52c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templater/scripts/verify-prowjobs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ set -o pipefail

REPO_ROOT=$(git rev-parse --show-toplevel)

DIFF_LINE_COUNT=$(git diff $REPO_ROOT/jobs | wc -l)
DIFF_LINE_COUNT=$(git diff $REPO_ROOT/jobs ':(exclude)*-1-23-*' | wc -l)
if [ $DIFF_LINE_COUNT -ne 0 ]; then
CHANGED_FILES=$(git diff --name-only $REPO_ROOT/jobs)
git diff $REPO_ROOT/jobs
CHANGED_FILES=$(git diff --name-only $REPO_ROOT/jobs ':(exclude)*-1-23-*')
git diff $REPO_ROOT/jobs ':(exclude)*-1-23-*'
echo "\n❌ Detected discrepancies between generated and expected Prowjobs!"
echo "The following generated files need to be checked in:\n"
echo "${CHANGED_FILES}\n" | tr ' ' '\n'
Expand Down

0 comments on commit 44bf52c

Please sign in to comment.