mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-19 13:19:41 +02:00
duh
This commit is contained in:
parent
f72ebed0dc
commit
e417a2001d
1 changed files with 13 additions and 4 deletions
17
.github/workflows/locale-sync.yml
vendored
17
.github/workflows/locale-sync.yml
vendored
|
@ -76,7 +76,11 @@ jobs:
|
||||||
git config --local user.email "action@github.com"
|
git config --local user.email "action@github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "GitHub Action"
|
||||||
|
|
||||||
# Create a new branch
|
# Use the current branch as the base
|
||||||
|
BASE_BRANCH="${{ github.ref_name }}"
|
||||||
|
echo "Using base branch: $BASE_BRANCH"
|
||||||
|
|
||||||
|
# Create a new branch from the base branch
|
||||||
BRANCH_NAME="auto-locale-sync-$(date +%Y%m%d-%H%M%S)"
|
BRANCH_NAME="auto-locale-sync-$(date +%Y%m%d-%H%M%S)"
|
||||||
git checkout -b "$BRANCH_NAME"
|
git checkout -b "$BRANCH_NAME"
|
||||||
|
|
||||||
|
@ -89,8 +93,13 @@ jobs:
|
||||||
|
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
# Create PR using GitHub CLI
|
# Create PR using GitHub CLI with explicit repository
|
||||||
gh pr create --title "chore: automatic locale sync" --body "## Summary
|
gh pr create \
|
||||||
|
--repo "${{ github.repository }}" \
|
||||||
|
--title "chore: automatic locale sync" \
|
||||||
|
--base "$BASE_BRANCH" \
|
||||||
|
--head "$BRANCH_NAME" \
|
||||||
|
--body "## Summary
|
||||||
|
|
||||||
Automatically generated locale updates from the weekly sync job.
|
Automatically generated locale updates from the weekly sync job.
|
||||||
|
|
||||||
|
@ -100,7 +109,7 @@ jobs:
|
||||||
|
|
||||||
## Test plan
|
## Test plan
|
||||||
- [ ] Verify locale files are properly formatted
|
- [ ] Verify locale files are properly formatted
|
||||||
- [ ] Test that translations load correctly in the frontend" --base dev --head "$BRANCH_NAME"
|
- [ ] Test that translations load correctly in the frontend" \
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue