mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-26 01:33:12 -05:00
Compare commits
1 Commits
auto-local
...
auto-local
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ee11ace557 |
12
.github/workflows/auto-merge-l10n.yml
vendored
12
.github/workflows/auto-merge-l10n.yml
vendored
@@ -25,12 +25,8 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
AUTHOR: ${{ github.event.pull_request.user.login }}
|
AUTHOR: ${{ github.event.pull_request.user.login }}
|
||||||
run: |
|
run: |
|
||||||
if [[
|
if [[ "$AUTHOR" != "hay-kot" && "$AUTHOR" != "github-actions[bot]" ]]; then
|
||||||
"$AUTHOR" != "hay-kot" &&
|
echo "::error::PR author must be hay-kot or github-actions[bot] for auto-merge (got: $AUTHOR)"
|
||||||
"$AUTHOR" != "github-actions[bot]" &&
|
|
||||||
"$AUTHOR" != "mealie-actions[bot]"
|
|
||||||
]]; then
|
|
||||||
echo "::error::PR author must be hay-kot, github-actions[bot], or mealie-actions[bot] for auto-merge (got: $AUTHOR)"
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "Author validated: $AUTHOR"
|
echo "Author validated: $AUTHOR"
|
||||||
@@ -47,8 +43,8 @@ jobs:
|
|||||||
|
|
||||||
echo "PR changes: +$ADDITIONS -$DELETIONS (total: $TOTAL lines)"
|
echo "PR changes: +$ADDITIONS -$DELETIONS (total: $TOTAL lines)"
|
||||||
|
|
||||||
if [ "$TOTAL" -gt 400 ]; then
|
if [ "$TOTAL" -gt 200 ]; then
|
||||||
echo "::error::PR exceeds 400 line change limit ($TOTAL lines)"
|
echo "::error::PR exceeds 200 line change limit ($TOTAL lines)"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
11
.github/workflows/locale-sync.yml
vendored
11
.github/workflows/locale-sync.yml
vendored
@@ -15,17 +15,10 @@ jobs:
|
|||||||
sync-locales:
|
sync-locales:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Generate GitHub App Token
|
|
||||||
id: app-token
|
|
||||||
uses: actions/create-github-app-token@v1
|
|
||||||
with:
|
|
||||||
app-id: ${{ secrets.COMMIT_BOT_APP_ID }}
|
|
||||||
private-key: ${{ secrets.COMMIT_BOT_APP_PRIVATE_KEY }}
|
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ steps.app-token.outputs.token }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
@@ -112,7 +105,7 @@ jobs:
|
|||||||
- Updated frontend locale files
|
- Updated frontend locale files
|
||||||
- Generated from latest translation sources" \
|
- Generated from latest translation sources" \
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ steps.app-token.outputs.token }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: No changes detected
|
- name: No changes detected
|
||||||
if: steps.changes.outputs.has_changes == 'false'
|
if: steps.changes.outputs.has_changes == 'false'
|
||||||
|
|||||||
Reference in New Issue
Block a user