Skip to content

Commit

Permalink
🔥 Remove unnecessary lines in copyright CI
Browse files Browse the repository at this point in the history
  • Loading branch information
NoaSecond committed Jun 6, 2024
1 parent 3a297e2 commit 95d1802
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/addCopyright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,10 @@ jobs:
with:
python-version: 3.x

- name: Save current file list
id: save_file_list
run: |
git ls-files > before_files.txt
- name: Run script to add comment
run: |
python utils/addCopyright.py
- 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
run: |
git config --local user.email "[email protected]"
Expand All @@ -41,10 +29,4 @@ jobs:
git add .
git commit -m ":construction_worker: Add copyright to files" || echo "No changes to commit"
git pull --rebase
git push origin main
- name: Print affected files
if: success()
run: |
echo "The following files were affected by the change:"
cat affected_files.txt
git push origin main

0 comments on commit 95d1802

Please sign in to comment.