Skip to content

Commit

Permalink
Use GH_DEPLOY_KEY to authenticate reindex jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Mar 21, 2024
1 parent 8d956c5 commit 5b36c4b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/reindex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,18 @@ jobs:
echo "Changes detected"
echo 'CHANGES=1' >> $GITHUB_OUTPUT
fi
- name: Setup SSH Keys
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.GH_DEPLOY_KEY }}
- name: Push rebuilt WordPress to GitHub
if: steps.changes.outputs.CHANGES == '1'
run: |
git config --global user.name "deployment_bot"
git config --global user.email "[email protected]"
git remote set-url origin https://${{ secrets.GH_ACTOR }}:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}
git add -A
git commit -a -m "Reindex Blueprints"
git pull --rebase
if [ $? -eq 0 ]; then
git push origin HEAD:trunk
fi;
git push [email protected]:wordpress/playground-tools.git --follow-tags
fi;

0 comments on commit 5b36c4b

Please sign in to comment.