From e0f7d31b5dfa14e63b1c1bc459afbd587d0d77f8 Mon Sep 17 00:00:00 2001 From: Mohan Raj Date: Mon, 19 Feb 2024 19:51:52 +0000 Subject: [PATCH] new build step with email --- .github/workflows/plugin-build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/plugin-build.yml b/.github/workflows/plugin-build.yml index 22dfe64..57253c2 100644 --- a/.github/workflows/plugin-build.yml +++ b/.github/workflows/plugin-build.yml @@ -48,12 +48,13 @@ jobs: - name: Create and push built branch run: | - git checkout -b main-built git config --global user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com" git config --global user.name "${{ github.actor }}" git config --global credential.helper "store --file=.git/credentials" - echo "username=${{ secrets.GITHUB_ACTOR }}" >> .git/credentials + echo "username=${{ github.actor }}" >> .git/credentials echo "password=${{ secrets.GITHUB_TOKEN }}" >> .git/credentials + git fetch origin main-built + git checkout -b main-built git add -A # Stage all changes, including untracked files git clean -fdX git commit -m "Built WordPress plugin" --no-verify