Skip to content

Commit dd0beb9

Browse files
authored
Merge pull request #946 from PowerGridModel/check-unchanged-test-workflow
Adds check for test_workflow
2 parents 2792801 + bf3357e commit dd0beb9

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/check-code-quality.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,19 @@ jobs:
8484
echo
8585
echo "All the generated files are up to date."
8686
fi
87+
88+
- name: Check test-workflow.yml
89+
if: success()
90+
run: |
91+
git fetch origin main
92+
DIFF=$(git diff origin/main -- .github/workflows/test-workflow.yml)
93+
94+
if [ -n "$DIFF" ]; then
95+
echo "The test-workflow.yml file has changed from main."
96+
echo "Please revert test-workflow.yml to its original state after testing is completed."
97+
echo "$DIFF"
98+
exit 1
99+
else
100+
echo "The test-workflow.yml file matches main."
101+
fi
102+

0 commit comments

Comments
 (0)