Skip to content

Commit 964aa2d

Browse files
committed
feat: checkout main before build
1 parent 6a97954 commit 964aa2d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build-action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Install ncc
2929
run: npm install -g @vercel/ncc
3030

31-
- name: Build
31+
- name: Build project
3232
run: npm run build
3333

3434
- name: Create a new branch
@@ -38,6 +38,9 @@ jobs:
3838
git checkout -b build-output-${{ github.run_id }}
3939
git add .
4040
git commit -m "Build output for release ${{ github.sha }}"
41+
42+
- name: Show git status for debugging
43+
run: git status
4144

4245
- name: Push changes to new branch
4346
run: git push origin build-output-${{ github.run_id }}

0 commit comments

Comments
 (0)