Skip to content

Commit 5b36c4b

Browse files
committed
Use GH_DEPLOY_KEY to authenticate reindex jobs
1 parent 8d956c5 commit 5b36c4b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/reindex.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,18 @@ jobs:
2727
echo "Changes detected"
2828
echo 'CHANGES=1' >> $GITHUB_OUTPUT
2929
fi
30+
- name: Setup SSH Keys
31+
uses: webfactory/[email protected]
32+
with:
33+
ssh-private-key: ${{ secrets.GH_DEPLOY_KEY }}
3034
- name: Push rebuilt WordPress to GitHub
3135
if: steps.changes.outputs.CHANGES == '1'
3236
run: |
3337
git config --global user.name "deployment_bot"
3438
git config --global user.email "[email protected]"
35-
git remote set-url origin https://${{ secrets.GH_ACTOR }}:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}
3639
git add -A
3740
git commit -a -m "Reindex Blueprints"
3841
git pull --rebase
3942
if [ $? -eq 0 ]; then
40-
git push origin HEAD:trunk
41-
fi;
43+
git push [email protected]:wordpress/playground-tools.git --follow-tags
44+
fi;

0 commit comments

Comments
 (0)