Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

Commit 8f3750f

Browse files
committed
Refactor GitHub Actions workflow to streamline main branch updates from dev
1 parent 06cdf4c commit 8f3750f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,8 @@ jobs:
6363
6464
- name: Push changes to main
6565
run: |
66-
git branch main
67-
git checkout main
68-
git pull origin main
69-
git merge origin/dev --allow-unrelated-histories
70-
git push origin main
66+
git checkout -b main
67+
git reset --hard dev
68+
git push -u -f origin main
7169
env:
7270
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)