Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 24ff3e8

Browse files
committed
Reset not checkout
1 parent a40cabf commit 24ff3e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/test-scripts.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
MODIFIED=$(python .github/get_modified_tutorials.py --main-branch origin/main)
3333
echo "$MODIFIED"
3434
[ ! -z "$MODIFIED" ] && exit 1 || echo "Success!"
35-
git checkout tutorials/FITS-header/FITS-header.ipynb
35+
git reset --hard HEAD
3636
3737
- name: Test 2 - no modified if a file is removed and committed
3838
run: |
@@ -41,3 +41,4 @@ jobs:
4141
echo "$MODIFIED"
4242
MODIFIED=$(python .github/get_modified_tutorials.py --main-branch origin/main)
4343
[ ! -z "$MODIFIED" ] && exit 1 || echo "Success!"
44+
git reset --hard HEAD~1

0 commit comments

Comments
 (0)