Skip to content

Commit c3375c2

Browse files
committed
new build step with email
1 parent c9d5e12 commit c3375c2

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.github/workflows/plugin-build.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,10 @@ jobs:
4646
cat .deployignore | xargs rm -rf
4747
fi
4848
49-
- name: Create and push built branch
50-
run: |
51-
git config --global user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
52-
git config --global user.name "${{ github.actor }}"
53-
git config --global credential.helper "store --file=.git/credentials"
54-
echo "username=${{ github.actor }}" >> .git/credentials
55-
echo "password=${{ secrets.GITHUB_TOKEN }}" >> .git/credentials
56-
git fetch origin main-built
57-
git checkout -b main-built
58-
git merge --allow-unrelated-histories origin/main-built
59-
git add -A # Stage all changes, including untracked files
60-
git clean -fdX
61-
git commit -m "Built WordPress plugin" --no-verify
62-
git push origin main-built
49+
- name: Push to built branch
50+
uses: Automattic/action-commit-to-branch@master
51+
with:
52+
branch: 'main-built'
53+
commit_message: 'Built main'
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Required

0 commit comments

Comments
 (0)