Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vini47 committed Sep 3, 2024
1 parent 449fe76 commit c3f1211
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,16 @@ jobs:
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
- name: Deploy changes
- name: Fetch and Checkout Branch
run: |
git fetch origin
git checkout -b projeto_deploy || git checkout projeto_deploy
git pull origin projeto_deploy
git checkout projeto_deploy || echo "Branch projeto_deploy does not exist locally; creating it."
git pull origin projeto_deploy || echo "Failed to pull from projeto_deploy."
- name: Commit and Push Changes
run: |
git add .
git commit -m "Deploy changes to projeto_deploy branch" || echo "No changes to commit"
git push origin projeto_deploy
git push origin projeto_deploy || echo "Failed to push changes to projeto_deploy."
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c3f1211

Please sign in to comment.