Skip to content

Commit ba386dc

Browse files
committed
ci: replace gitmodules with clone git posts in github workflow
1 parent 57ecea7 commit ba386dc

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/nextjs.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,13 @@ jobs:
3131
steps:
3232
- name: Checkout
3333
uses: actions/checkout@v4
34+
- name: Clone another repository into a subdirectory
35+
uses: actions/checkout@v4
3436
with:
35-
submodules: true # Fetch submodules
36-
fetch-depth: 0 # Required to get all Git history for submodules
37+
repository: "raitucarp/posts"
38+
path: "_posts"
39+
token: ${{ secrets.GITHUB_TOKEN }}
40+
ref: "main"
3741
- name: Detect package manager
3842
id: detect-package-manager
3943
run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ yarn-error.log*
3939
# typescript
4040
*.tsbuildinfo
4141
next-env.d.ts
42+
_posts

.gitmodules

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)