Skip to content

Commit

Permalink
🐛 Reverse change on sitemap CI
Browse files Browse the repository at this point in the history
  • Loading branch information
NoaSecond committed May 30, 2024
1 parent 6cf16e7 commit d68fc8d
Showing 1 changed file with 4 additions and 27 deletions.
31 changes: 4 additions & 27 deletions .github/workflows/sitemap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,36 +18,13 @@ jobs:
with:
node-version: '14'

- name: Save current file list
id: save_file_list
run: |
git ls-files > before_files.txt
- name: Generate sitemap
run: node utils/generate-sitemap.js

- name: List affected files
run: |
git ls-files > after_files.txt
git diff --name-only > affected_files.txt
echo "Changed files:"
cat affected_files.txt
- name: Configure Git
- name: Commit sitemap
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- name: Commit affected files
run: |
git add affected_files.txt
git commit -m "Commit affected files" || true
- name: Pull changes
run: git pull --rebase

- name: Print affected files
if: success()
run: |
echo "The following files were affected by the change:"
cat affected_files.txt
git add sitemap.xml
git commit -m ":construction_worker: Update sitemap.xml" || true
git push origin main

0 comments on commit d68fc8d

Please sign in to comment.