diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index d8430b0..aab224f 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -10,6 +10,10 @@ on: pull_request: +env: + GIT_USER_EMAIL: ${{ secrets.GIT_USER_EMAIL }} + GIT_USER_NAME: ${{ secrets.GIT_USER_NAME }} + jobs: update-composer-lock: runs-on: ubuntu-latest @@ -21,5 +25,7 @@ jobs: uses: php-actions/composer@v6 - name: Commit changes run: | + git config --global user.name "${GIT_USER_EMAIL}" + git config --global user.email "${GIT_USER_EMAIL}" git commit -am "Update composer.lock file" git push