Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaisqls committed Mar 2, 2024
1 parent bb037a7 commit fb4e684
Show file tree
Hide file tree
Showing 687 changed files with 33 additions and 65,780 deletions.
42 changes: 32 additions & 10 deletions .github/workflows/copy-files-from-til.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ on:

jobs:
copy_files:
env:
destination: src/content/docs/TIL
runs-on: ubuntu-latest

steps:
- name: Clone repository
- name: Checkout repository
uses: actions/checkout@v2
with:
repository: rlaisqls/TIL

- name: Clone repository
run: |
git clone --branch main https://github.com/rlaisqls/TIL.git
- name: Add labels
run: |
Expand All @@ -35,26 +39,44 @@ jobs:
mv tmpfile "$file"
elif [ -d "$file" ]; then
add_text_to_files "$dir/$file"
add_labels_to_files "$dir/$file"
cd "$dir"
fi
done
}
add_labels_to_files TIL
ls
ls ../
cd TIL
pwd
add_labels_to_files $(pwd)
- name: Copy files
run: |
cp -r TIL/* src/content/docs/TIL
rm src/content/docs/TIL/README.md
pwd
echo ""
ls
ls TIL
rm -rf ${{ env.destination }}
mkdir ${{ env.destination }}
cp -r TIL/* ${{ env.destination }}
rm ${{ env.destination }}/README.md
rm -rf TIL
- name: Checkout repository
uses: actions/checkout@v2
ls ${{ env.destination }}
- name: Commit and push
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Copy files from TIL"
repository: .
branch: main
file_pattern: '.'
push_options: '--force'
commit_options: '--no-verify --signoff'
commit_user_name: rlaisqls
commit_user_email: [email protected]
commit_author: rlaisqls <[email protected]>
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default defineConfig({
},
{
label: 'TIL',
autogenerate: { directory: 'TIL/개발', collapsed: true },
autogenerate: { directory: 'TIL', collapsed: true },
}
],
customCss: ['./src/tailwind.css'],
Expand Down
32 changes: 0 additions & 32 deletions src/content/docs/TIL/Git/Flow/GitFlow.md

This file was deleted.

26 changes: 0 additions & 26 deletions src/content/docs/TIL/Git/Flow/GithubFlow.md

This file was deleted.

53 changes: 0 additions & 53 deletions src/content/docs/TIL/Git/GitLab.md

This file was deleted.

62 changes: 0 additions & 62 deletions src/content/docs/TIL/Git/Selfhosted Runner.md

This file was deleted.

38 changes: 0 additions & 38 deletions src/content/docs/TIL/Git/hooks/GitHub hooks.md

This file was deleted.

This file was deleted.

Loading

0 comments on commit fb4e684

Please sign in to comment.