Skip to content

Commit efea3cf

Browse files
authored
Update build workflow to handle .gitignore
Reset and restore .gitignore before build commit.
1 parent 9f160e1 commit efea3cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build-to-branch.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ jobs:
7878
# cp package.json next.config.js .
7979
8080
# copy .gitignore
81-
cp ../.gitignore .
81+
git reset .gitignore
82+
git checkout -- .gitignore
83+
cp .gitignore .
8284
8385
git add .
8486
git commit -m "chore: build from $GITHUB_SHA"

0 commit comments

Comments
 (0)