Skip to content

Commit

Permalink
If it works don't fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandapip1 authored Aug 1, 2022
1 parent 7534f97 commit d261332
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,29 @@ jobs:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b

- name: Get Changed Files
id: changed-files
uses: tj-actions/changed-files@6c44eb8294bb9c93d6118427f4ff8404b695e1d7

- name: Delete Unmodified Files
run: |
cd $GITHUB_WORKSPACE
mkdir all
shopt -s extglob dotglob
mv !(all) all
shopt -u dotglob
mkdir unchanged
cd all
for FILE in ${{ steps.changed-files.outputs.all_changed_files }}; do
[ -f ${FILE} ] && mkdir -p $(dirname "../unchanged/${FILE}")
[ -f ${FILE} ] && cp ${FILE} ../unchanged/${FILE}
done
cd ..
rm -rf all
cd unchanged
cp -r unchanged/* .
cd ..
rm -rf unchanged
- name: Check License Lines
uses: kt3k/license_checker@d12a6d90c58e30fefed09f2c4d03ba57f4c673a8

0 comments on commit d261332

Please sign in to comment.