diff --git a/.gitea/workflows/update-child-repos.yaml b/.gitea/workflows/update-child-repos.yaml index 0a7cc02..b3676a2 100644 --- a/.gitea/workflows/update-child-repos.yaml +++ b/.gitea/workflows/update-child-repos.yaml @@ -19,7 +19,12 @@ jobs: steps: - uses: actions/checkout@v4 - run: | - export GIT_TOKEN=${{ secrets.GIT_TOKEN }} + git config --global user.name "${GIT_NAME}" + git config --global user.email "${GIT_EMAIL}" git config --global credential.helper store - echo "https://bryan%40pedini.dev:${GIT_TOKEN}@git.bjphoster.com" > ~/.git-credentials + echo "https://${GIT_EMAIL//@/%40}:${GIT_TOKEN}@git.bjphoster.com" > ~/.git-credentials ./update_child_repos.sh + env: + GIT_NAME: ${{ secrets.GIT_NAME }} + GIT_EMAIL: ${{ secrets.GIT_EMAIL }} + GIT_TOKEN: ${{ secrets.GIT_TOKEN }}