Skip to content

Commit

Permalink
Merge pull request #29 from wobkobi/dev
Browse files Browse the repository at this point in the history
updated github actions
  • Loading branch information
wobkobi authored Jun 4, 2024
2 parents 578832c + 15487a3 commit 27386dc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/sync-dev-with-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3 # Updated to use the latest version

- name: Set up Git
run: |
Expand All @@ -27,9 +27,14 @@ jobs:
run: git checkout dev

- name: Merge main into dev
run: git merge origin/main
run: git merge origin/main || echo "Merge conflict detected, aborting." && git merge --abort

- name: Push changes
run: git push origin dev
run: |
if [ $(git rev-parse HEAD) != $(git rev-parse @{u}) ]; then
git push origin dev
else
echo "No changes to push."
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

1 comment on commit 27386dc

@vercel
Copy link

@vercel vercel bot commented on 27386dc Jun 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.