Skip to content

Commit

Permalink
feat: update workflow again
Browse files Browse the repository at this point in the history
  • Loading branch information
prplwtf committed Oct 15, 2024
1 parent dcfe21e commit 048a0a6
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/update-writea.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@ jobs:
- name: Restore specific files and directories
run: |
# Restore the specified files and directories
git checkout HEAD -- configuration/Posts.yml
git checkout HEAD -- configuration/Configuration.yml
git checkout HEAD -- posts/
git checkout HEAD -- images/
git checkout HEAD -- themes/
git checkout HEAD -- CNAME
[ -f configuration/Posts.yml ] && git checkout HEAD -- configuration/Posts.yml
[ -f configuration/Configuration.yml ] && git checkout HEAD -- configuration/Configuration.yml
[ -d posts/ ] && git checkout HEAD -- posts/
[ -d images/ ] && git checkout HEAD -- images/
[ -d themes/ ] && git checkout HEAD -- themes/
[ -f CNAME ] && git checkout HEAD -- CNAME
git rm --cached themes/Default.css || true
- name: Commit changes
Expand Down

0 comments on commit 048a0a6

Please sign in to comment.