Skip to content

Commit cc296a8

Browse files
committed
Add lock files to git index before committing
Otherwise new files are not picked up.
1 parent 99c0850 commit cc296a8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/scheduled-updates.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,12 @@ jobs:
7575
fi
7676
7777
# Commit changed lockfiles.
78-
git commit -m "[CI] Update conda lock files" requirements/locks/*.txt || true
78+
git add requirements/locks/*.txt
79+
git commit -m "[CI] Update conda lock files" || true
7980
8081
# Commit changed pre-commit config.
81-
git commit -m "[CI] Update .pre-commit-config.yaml" .pre-commit-config.yaml || true
82+
git add .pre-commit-config.yaml
83+
git commit -m "[CI] Update .pre-commit-config.yaml" || true
8284
8385
# Push branch to GitHub.
8486
git push origin HEAD

0 commit comments

Comments
 (0)