-
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.
🔥 Remove unnecessary lines in copyright CI
- Loading branch information
Showing
1 changed file
with
1 addition
and
19 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 |
---|---|---|
|
@@ -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]" | ||
|
@@ -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 |