fix(actions/flux-localhost-build): git user info

This commit is contained in:
JJGadgets
2024-05-20 06:03:24 +08:00
parent 84fde6c10d
commit 7e73f74c6e

View File

@@ -58,6 +58,8 @@ jobs:
shell: bash
run: |
git config push.autoSetupRemote true
git config user.name "${{ secrets.BOT_USERNAME }}[bot]"
git config user.email "${{ secrets.BOT_USERNAME }} <${{ secrets.BOT_API_ID }}+${{ secrets.BOT_USERNAME }}[bot]@users.noreply.github.com>" # get $BOT_API_ID from `curl -s 'https://api.github.com/users/$(BOT_USERNAME)%5Bbot%5D' | yq .id`
git checkout ${{ env.BRANCH }} || git checkout -b ${{ env.BRANCH }} main
git pull origin ${{ env.BRANCH }} || true