Skip to content

Commit

Permalink
add checkout of master
Browse files Browse the repository at this point in the history
  • Loading branch information
sierra-moxon committed Sep 27, 2023
1 parent 10555c0 commit 04dcc1b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/check-watchdog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ jobs:

- name: Check for modifications in the watchdog function
run: |
# Check if the watchdog function has been modified
MODIFIED_LINES=$(MODIFIED_LINES=$(git diff --unified=0 master ${{ github.head_ref }} Jenkinsfile | grep 'void watchdog()'))
$(MODIFIED_LINES=$(git diff --unified=0 master ${{ github.head_ref }} Jenkinsfile | grep 'void watchdog()'))
if [[ ! -z "$MODIFIED_LINES" ]]; then
echo "ERROR: The watchdog function in the Jenkinsfile has been modified. $MODIFIED_LINES"
echo "ERROR: The watchdog function in the Jenkinsfile has been modified."
exit 1
fi

0 comments on commit 04dcc1b

Please sign in to comment.