Skip to content

Commit

Permalink
fix(fix_custom_translations): use app token
Browse files Browse the repository at this point in the history
use app token
  • Loading branch information
snomiao committed Dec 30, 2024
1 parent 42b66ef commit 292faf9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/i18n-custom-nodes-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ jobs:
# Stage and commit changes
git add -A
git commit -m "Update locales"
# - uses: actions/create-github-app-token@v1
# id: app-token
# with:
# app_id: ${{ vars.PR_APP_ID }}
# private_key: ${{ secrets.PR_CLIENT_SECRET }}
# repositories: ${{ env.fork_owner }}/${{ env.repository }}
- uses: actions/create-github-app-token@v1
id: app-token
with:
app_id: ${{ vars.PR_APP_ID }}
private_key: ${{ secrets.PR_APP_PRIVATE_KEY }}
repositories: ${{ env.fork_owner }}/${{ env.repository }}
# - uses: actions/checkout@v4
# with:
# token: ${{ steps.app-token.outputs.token }}
Expand All @@ -146,8 +146,8 @@ jobs:
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
# 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: Create PR
Expand Down

0 comments on commit 292faf9

Please sign in to comment.