We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f84026f commit 5a6e9b0Copy full SHA for 5a6e9b0
scripts/test.sh
@@ -71,10 +71,10 @@ function doTestCompare() {
71
# Drop the date from the diff output, it will not be stable
72
diff -u ${TESTDIR}/${name}-naked.expected.yml ${TESTDIR}/${name}-normal.expected.yml | sed 's/\.yml.*20[0-9][0-9].*/.yml/g' > ${OUTPUT}
73
74
- if [ ! -e ${REFERENCE} ]; then
+ if [ ! -e ${REFERENCE} -a -z $GITHUB_ACTIONS ]; then
75
cp ${OUTPUT} ${REFERENCE}
76
- echo -e "\n\n#### Created test output\007\n#### Now add ${REFERENCE} to Git\n\n\007" >&2
77
- exit 2
+ git add ${REFERENCE}
+ echo -e "\n\n#### Created test output\007\n\n\007" >&2
78
fi
79
80
diff -u ${REFERENCE} ${OUTPUT}
0 commit comments