From 908e24d7481b462687c234b284da0037ab6b1da9 Mon Sep 17 00:00:00 2001 From: Jorge Monroy Date: Thu, 20 Feb 2025 07:18:04 -0500 Subject: [PATCH] Add github-actions as a user on merge-dev-to-main --- .github/workflows/merge-dev-to-main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/merge-dev-to-main.yml b/.github/workflows/merge-dev-to-main.yml index 2f95576..eb51aab 100644 --- a/.github/workflows/merge-dev-to-main.yml +++ b/.github/workflows/merge-dev-to-main.yml @@ -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 github-actions@github.com 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 }}