Skip to content

Commit

Permalink
Add github-actions as a user on merge-dev-to-main
Browse files Browse the repository at this point in the history
  • Loading branch information
jlmonroy13 committed Feb 20, 2025
1 parent 565fccc commit 908e24d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/merge-dev-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ jobs:
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Push dev to main
run: |
git config user.name github-actions
git config user.email [email protected]
git fetch --all
git pull origin main
git checkout dev
git pull origin main
git push origin dev:main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 908e24d

Please sign in to comment.