Skip to content

Commit

Permalink
fix(fix_custom_translations): remove test workflow
Browse files Browse the repository at this point in the history
remove test workflow
  • Loading branch information
snomiao committed Dec 31, 2024
1 parent 1ff5adf commit 76e463d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 183 deletions.
175 changes: 0 additions & 175 deletions .github/workflows/i18n-custom-nodes-test.yaml

This file was deleted.

28 changes: 20 additions & 8 deletions .github/workflows/i18n-custom-nodes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,28 +123,40 @@ jobs:
-F default_workflow_permissions="write" \
-F enabled=true
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Commit and push changes
GH_TOKEN: ${{ secrets.PR_GH_TOKEN }}

- name: Commit changes
working-directory: ComfyUI/custom_nodes/${{ inputs.repository }}
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
# Configure the remote with token
git remote set-url origin "https://x-access-token:[email protected]/${{ inputs.fork_owner }}/${{ inputs.repository }}.git"
# Create and switch to new branch
git checkout -b update-locales
# Stage and commit changes
git add -A
git commit -m "Update locales"
- name: Install SSH key For PUSH
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/${{ inputs.repository }}
run: |
# Force push to create the branch
echo "Pushing changes to ${{ inputs.fork_owner }}/${{ inputs.repository }}"
git push -f origin update-locales
git push -f [email protected]:${{ inputs.fork_owner }}/${{ inputs.repository }}.git update-locales
- name: Create PR
working-directory: ComfyUI/custom_nodes/${{ inputs.repository }}
run: |
# Create PR using gh cli
gh pr create --title "Update locales for ${{ inputs.repository }}" --repo ${{ inputs.owner }}/${{ inputs.repository }} --head ${{ inputs.fork_owner }}:update-locales
working-directory: ComfyUI/custom_nodes/${{ inputs.repository }}
env:
GH_TOKEN_PR: ${{ secrets.GH_TOKEN_PR }}
GH_TOKEN: ${{ secrets.PR_GH_TOKEN }}

0 comments on commit 76e463d

Please sign in to comment.