Skip to content

Commit

Permalink
Fix download translations PR head (#1846)
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin authored Jan 7, 2025
1 parent 52f57af commit 6f662c6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/download-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,21 @@ jobs:
git checkout -b "$new_branch"
# Commit
date="$(date -u "+%Y-%m-%d")"
title="[Automated] Update translations $date"
git add .
git config --global user.name "DangoCat[bot]"
git config --global user.email "[email protected]"
git commit -m "[Automated] Update translations"
git commit -m "$title"
# Push
git push origin "$new_branch"
# Create pull request
GH_TOKEN="$UPSTREAM_GH_TOKEN" gh pr create \
--head "$new_branch" \
--head "dangocat:$new_branch" \
--repo "$UPSTREAM_REPO" \
--title "[Automated] Update translations $(date -u "+%Y-%m-%d")" \
--title "$title" \
--body "This pull request was made by a robot."
env:
FORK_REPO: "DangoCat/extensions"
Expand Down

0 comments on commit 6f662c6

Please sign in to comment.