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 bdc8270
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/copy-files-from-til.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ jobs:
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,18 +37,25 @@ 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
destination='src/content/docs/TIL'
rm -rf $destination
mkdir $destination
cp -r TIL/* $destination
rm $destination/README.md
rm -rf TIL
- name: Checkout repository
Expand Down
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

0 comments on commit bdc8270

Please sign in to comment.