Skip to content

Commit

Permalink
fix(fix_custom_translations): push by sshkey
Browse files Browse the repository at this point in the history
push by sshkey
  • Loading branch information
snomiao committed Dec 31, 2024
1 parent 292faf9 commit 650675e
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/i18n-custom-nodes-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,19 +141,30 @@ jobs:
# - uses: actions/checkout@v4
# with:
# token: ${{ steps.app-token.outputs.token }}
# - name: Push changes
# working-directory: ComfyUI/custom_nodes/${{ env.repository }}
# run: |
# # Force push to create the branch
# echo "Pushing changes to ${{ env.fork_owner }}/${{ env.repository }}"
# # git push -f https://x-access-token:[email protected]/${{ env.fork_owner }}/${{ env.repository }}.git update-locales
# git push -f https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/${{ env.fork_owner }}/${{ env.repository }}.git update-locales
# env:
# PR_GH_TOKEN: ${{ secrets.PR_GH_TOKEN }}
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
# PR private key from action server
key: ${{ secrets.PR_SSH_PRIVATE_KEY }}
# github public key to confirm it's github server
known_hosts: github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
- name: Push changes
working-directory: ComfyUI/custom_nodes/${{ env.repository }}
run: |
# Force push to create the branch
echo "Pushing changes to ${{ env.fork_owner }}/${{ env.repository }}"
# git push -f https://x-access-token:[email protected]/${{ env.fork_owner }}/${{ env.repository }}.git update-locales
git push -f https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/${{ env.fork_owner }}/${{ env.repository }}.git update-locales
env:
PR_GH_TOKEN: ${{ secrets.PR_GH_TOKEN }}
git push -f [email protected]:${{ env.fork_owner }}/${{ env.repository }}.git update-locales
- name: Create PR
working-directory: ComfyUI/custom_nodes/${{ env.repository }}
run: |
# Create PR using gh cli
gh pr create --title "Update locales for ${{ env.repository }}" --repo ${{ env.owner }}/${{ env.repository }} --head ${{ env.fork_owner }}:update-locales
env:
GH_TOKEN: ${{ secrets.PR_GH_TOKEN }}
gh pr create --title "Update locales for ${{ env.repository }}" --repo ${{ env.owner }}/${{ env.repository }} --head ${{ env.fork_owner }}:update-locales

0 comments on commit 650675e

Please sign in to comment.