File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed
Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments