Skip to content

Commit

Permalink
111
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnson alaric committed Sep 16, 2024
1 parent 9319a7c commit 81cd136
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/copymd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
mkdir -p "$repo_dir"
# Clone the repo using access token
git clone https://${{ secrets.REPO_ACCESS_TOKEN }}@github.com/$repo.git temp-repo
git clone https://x-access-token:${{ secrets.REPO_ACCESS_TOKEN }}@github.com/$repo.git temp-repo
cd temp-repo
# Find and copy .md files
Expand All @@ -51,8 +51,6 @@ jobs:
if [ -f "$file" ]; then
# Get the file hash
hash=$(git hash-object "$file")
# Ensure the target directory exists
mkdir -p "$(dirname "../../$repo_dir")"
# Copy the file to the main repo with a new name
cp "$file" "../../$repo_dir/${hash}.md"
fi
Expand Down

0 comments on commit 81cd136

Please sign in to comment.