Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Prathm0025 authored Oct 17, 2024
1 parent 6a30204 commit 9bd79ab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.G_TOKEN }}
run: |
git fetch origin dev:dev # Fetch the dev branch
git checkout dev -- package.json # Checkout only the package.json file
git fetch origin main:main # Ensure you're up-to-date with main
git checkout main
git config user.name "Prathm"
git config user.email "prathm@123.com"
rm -f package.json
git checkout dev -- package.json
git add package.json
git commit -m "update package.json" || echo "No changes to commit"
git push --force origin main
Expand Down

0 comments on commit 9bd79ab

Please sign in to comment.