-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74d5bca
commit de6eb23
Showing
1 changed file
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,12 +44,19 @@ jobs: | |
git config --global user.name "github-actions" | ||
git config --global user.email "[email protected]" | ||
# Check if there are any changes to commit | ||
# Stage changes | ||
git add . | ||
git commit -m "Update directory listings" | ||
# Push only if there are changes | ||
git push | ||
# Check if there are any changes to commit | ||
if git diff --cached --quiet; then | ||
echo "No changes to commit." | ||
else | ||
# Commit changes if there are any | ||
git commit -m "Update directory listings" | ||
# Push changes to the remote repository | ||
git push | ||
fi | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Upload artifact | ||
|